You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(middleware): pass through http.Flusher for SSE streaming (#52)
The request-logging, metrics, and tracing middlewares each wrap the
ResponseWriter to capture status/bytes, but none implemented
http.Flusher. Streaming handlers (/v1/answer/treewalk?stream=true,
/v1/query/stream) do w.(http.Flusher) and errored with 'response
writer does not support http.Flusher'. Add Flush() (delegating to the
wrapped writer) + Unwrap() to statusRecorder, metricsRecorder, and
tracingRecorder so flushes propagate through the whole chain and SSE
streams in real time.
0 commit comments