Skip to content

Gate OkHttp body capture on active Session Replay #6138

Description

@markushi

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions