Skip to content

Conversation

@43jay
Copy link
Collaborator

@43jay 43jay commented Nov 26, 2025

Configuring Network Details in the Android SDK

[MOBILE-1134] Update docs to reflect availability of network details in android SDK

Create a new page describing how to configure Network Details (http request/response bodies & headers) recording for Session Replay in android, mostly re-using the language that's already written for Network Details in Javascript.

Session Replay Configuration page

DNE on Android, so created one and added all the Session Replay Options I could find (AndroidManifest Options, SentryReplayOptions)

-> added https://docs.sentry.io/platforms/android/session-replay/configuration/
-> ref https://docs.sentry.io/platforms/javascript/session-replay/configuration

Session Replay Troubleshooting page

Added section for troubleshooting missing req/resp bodies/headers:

-> added .../platforms/android/session-replay/troubleshooting/#why-cant-i-see-the-full-http-request-body-or-all-the-headers
-> ref https://docs.sentry.io/platforms/javascript/session-replay/troubleshooting/#why-cant-i-see-the-full-http-request-body-or-all-the-headers

Android data management page

Remove what seemed to be some misleading / out of date documentation around the data that is exported from the android SDK.
Link to Network Details page for more info on collecting bodies/headers.

-> updated .../platforms/android/data-management/data-collected/
-> ref https://docs.sentry.io/platforms/android/data-management/data-collected/

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Update SDK Version in Requirements section (needs new SDK release)
  • Add Troubleshooting section as per comment
  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

@vercel
Copy link

vercel bot commented Nov 26, 2025

@43jay is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@43jay 43jay marked this pull request as draft November 26, 2025 21:08
…haviour

1. Point user to Network Details page for Request bodies + Request headers
2. Remove mention that request bodies can be sent to sentry -> true for java, not for android.
@43jay 43jay force-pushed the mobile-935/android-network-details branch from dc73fde to c1a9640 Compare November 27, 2025 20:10
@43jay 43jay marked this pull request as ready for review November 27, 2025 20:10
@vercel
Copy link

vercel bot commented Nov 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
develop-docs Ready Ready Preview Comment Dec 10, 2025 1:24pm
sentry-docs Ready Ready Preview Comment Dec 10, 2025 1:24pm

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for listing all the options!

Could you also please introduce a Troubleshooting entry, similar to the one JS has? Also worth mentioning OkHttp/Gradle plugin in the entry I think: https://docs.sentry.io/platforms/javascript/session-replay/troubleshooting/#why-cant-i-see-the-full-http-request-body-or-all-the-headers

Copy link
Contributor

@sfanahata sfanahata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@43jay 43jay enabled auto-merge (squash) December 8, 2025 16:58
</application>
```

If you give us a string, we'll match any URL that contains that string using Java's [`String#matches()`](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#matches-java.lang.String-)). This way, you can use a regex to handle exact or more complex matches.

This comment was marked as outdated.

});
```

<Alert>Captured bodies will be truncated to 150k characters max.</Alert>

This comment was marked as outdated.

@43jay 43jay merged commit 5f719bb into getsentry:master Dec 10, 2025
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants