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

  1. linear-code commented on Sep 21, 2026

    @linear-code
  2. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #6231, which was included in the 8.64.0 release.

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions