Skip to content

Android loopback ログインの bind 枯渇に Sentry イベント計装(#813 followup) #822

Closed

Description

@pooza

v1.45 リリース前 5 観点レビュー(エラー処理・観測性)由来の黄。#813(loopback bind の errno98 堅牢化)の観測性 followup。

packages/capsicum/lib/src/ui/screen/login_screen.dart の LoopbackPortOccupiedException 経路は、ユーザーには友好的なエラー文面を出せている(UX は良好)が、観測は breadcrumb(_logLoginStep('oauth_server.bind_exhausted'), info)のみで、ハンドラが return するため Sentry イベントは発火しない。結果、ポート占有でログインがブロックされる頻度が計測できない(breadcrumb は後続の captured event に相乗りしない限り送られない)。

これは既存の #503 _checkOAuthPortAvailability パターンと同型で意図的な可能性が高いが、#813 で堅牢化した bind リトライが枯渇するケースの実頻度は本来知りたい。

対応案: bind 枯渇時に captureMessage(level=warning・host 等の非 PII タグ付き)を 1 発上げる。既存の scrub 方針(生 URL/トークンを載せない)に沿わせる。優先度は低い。

出典: v1.45 リリース前 5 観点レビュー。

Activity

  1. added this to the v1.46 milestone on Jul 7, 2026
  2. added
    enhancement
    on Jul 7, 2026
  3. added a commit that references this issue on Jul 10, 2026
  4. added a commit that references this issue on Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions