Title: Gate OkHttp body capture on active Session Replay · Issue #6138 · getsentry/sentry-java · GitHub
Open Graph Title: Gate OkHttp body capture on active Session Replay · Issue #6138 · getsentry/sentry-java
X Title: Gate OkHttp body capture on active Session Replay · Issue #6138 · getsentry/sentry-java
Description: 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. Ski...
Open Graph Description: 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 bo...
X Description: 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 bo...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6138
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Gate OkHttp body capture on active Session Replay","articleBody":"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.\n\nGate body capture on active Session Replay. Skip known streaming content types, at minimum `text/event-stream`, before calling `peekBody()`.\n\nCaptured body contents are only used for Session Replay; spans, breadcrumbs, and failed-request events use sizes, status, and headers rather than body contents.\n\nRelevant implementation: [capture condition](\u003chttps://github.com/getsentry/sentry-java/blob/386030df08474f3ae228641db41198a4d0b578ef/sentry-okhttp/src/main/java/io/sentry/okhttp/SentryOkHttpInterceptor.kt#L112-L118>) and [`peekBody` call](\u003chttps://github.com/getsentry/sentry-java/blob/386030df08474f3ae228641db41198a4d0b578ef/sentry-okhttp/src/main/java/io/sentry/okhttp/SentryOkHttpInterceptor.kt#L318-L327>).","author":{"url":"https://github.com/markushi","@type":"Person","name":"markushi"},"datePublished":"2026-09-21T06:31:31Z","url":"https://github.com/getsentry/sentry-java/issues/6138"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0c211618-34c7-7b73-72aa-5fe99461cae4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96D2:1C619:C8113:11DF91:6B0463DB |
| html-safe-nonce | c4929354e3f7bb86241c945a9aa5ceb74aadfeb245887113d5c5997cb8eaf208 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkQyOjFDNjE5OkM4MTEzOjExREY5MTo2QjA0NjNEQiIsInZpc2l0b3JfaWQiOiI0Nzk0NTM1MTQzMjI0NDAyOTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 940d19e0b063e80af4ca340af234bb2b414479ec62491a4e14a97443b01b7c98 |
| hovercard-subject-tag | issue:5523580351 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/abb3378436ae8d84ae7e93b17522c92e1f250256d3d2b9dc38e9cfd6ccb2aa3b/getsentry/sentry-java/issues/6138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/abb3378436ae8d84ae7e93b17522c92e1f250256d3d2b9dc38e9cfd6ccb2aa3b/getsentry/sentry-java/issues/6138 |
| og:image:alt | 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 bo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markushi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 03e114520787ad27289207f153520ef97461127c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width