Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6de626cfd27ff14b994a8b75d59aeb545cc1a878aa08ad5707db0b4cc2d4100b
Ticket: aa75c56ff237af8e5f1a6eb91fccbe30a1162aba
ops: SSE streams are recorded as renders, which breaks the slow-route panel and the budget alert
User & Date: dmestas on 2026-08-25 21:28:59
Changes

  1. comment changed to:
    withTimer records every request, so a live SSE connection is filed as a render whose duration is its lifetime. Observed on the fleet: GET /r/{repo}/timeline.sse at p95 435414ms, chat.sse at 1045ms, ci.sse at 996ms.
    
    Two consequences. The slowest-routes panel is headed by four streams, burying real findings — GET /{$} at 1198ms max against a 13ms p50 sits below them. And obs.Budget's OnSlow fires for every stream, because a stream crosses 500ms by design; that is the muted-channel failure the first-crossing rule exists to prevent.
    
    Fix shape: the handler already sets Content-Type: text/event-stream and statusWriter can see it. Exclude streams from render stats and from the budget check, or record them as their own kind — a connection lifetime is a different measurement from a render time and should not share a column.
    
  2. priority changed to: "High"
  3. status changed to: "Open"
  4. subsystem changed to: "observability"
  5. title changed to:
    ops: SSE streams are recorded as renders, which breaks the slow-route panel and the budget alert
    
  6. type changed to: "Bug"