OkHttp captures allowlisted response bodies even when Session Replay is neither recording nor buffering. For SSE responses, peekBody(150KB + 1) can delay events until the connection closes.
Gate body capture on active Session Replay. Skip known streaming content types, at minimum text/event-stream, before calling peekBody().
Captured body contents are only used for Session Replay; spans, breadcrumbs, and failed-request events use sizes, status, and headers rather than body contents.
Relevant implementation: capture condition and peekBody call.
OkHttp captures allowlisted response bodies even when Session Replay is neither recording nor buffering. For SSE responses,
peekBody(150KB + 1)can delay events until the connection closes.Gate body capture on active Session Replay. Skip known streaming content types, at minimum
text/event-stream, before callingpeekBody().Captured body contents are only used for Session Replay; spans, breadcrumbs, and failed-request events use sizes, status, and headers rather than body contents.
Relevant implementation: capture condition and
peekBodycall.