Skip to content

#586 streaming 観測計装の followup (throttle バケット分離 / reconnect 上限の UI 表示) #602

Closed

Description

@pooza

概要

v1.27 リリース前レビュー (エラー処理・観測性観点) で検出した #586 streaming 観測計装の followup 2 件。

1. connect エラーと listen エラーが throttle バケットを共有

timeline_provider.dart の onStreamError (接続エラー) と stream.listen(onError:) (listener エラー = .map 内の _applyWordFilter 等の例外) が同一の _lastConnectCapture タイムスタンプで throttle されている。接続エラー発火後 60 秒以内の listener エラーの captureException が丸ごと抑制され、性質の違う _applyWordFilter 異常等を取りこぼす。_lastListenCapture として分離する。

2. streamReconnectExhausted が UI 未表示

onReconnectExhausted は TimelineState.streamReconnectExhausted を立て、コメントにも「UI が気付けるようにする」とあるが、home_screen.dart 等がこのフラグを参照していない。再接続上限到達でライブ更新が止まっても、ユーザーには分からない silent failure。pull-to-refresh で復帰するため機能破壊ではないが、状態の可視化が望ましい。

Activity

  1. added
    enhancement
    on May 22, 2026
  2. added this to the v1.28 milestone on May 22, 2026
  3. added a commit that references this issue on May 23, 2026
    54a7461
  4. pooza commented on May 23, 2026

    @pooza
    OwnerAuthor

    develop に対応コミット 54a7461 で取り込み済み。

    1. throttle バケット分離 (_lastListenCapture 独立化) — 「60s 以内に connect エラーと listener エラーが両方発火」の再現がネットワーク条件依存
    2. reconnect 上限 UI — 「再接続上限到達」もネットワーク不安定環境を意図的に作る必要があり、再現が難しい

    いずれもモンキーテスト困難として close。コード上の修正範囲は限定的なので、回帰は次リリース以降の Sentry 観測で拾える前提。

  5. added 2 commits that reference this issue on May 26, 2026
    8bd102c
    9bebbc1
  6. added a commit that references this issue on Sep 19, 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