-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
docs(replay): Network Request/Response bodies on Android #15641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(replay): Network Request/Response bodies on Android #15641
Conversation
|
@43jay is attempting to deploy a commit to the Sentry Team on Vercel. A member of the Team first needs to authorize it. |
…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.
dc73fde to
c1a9640
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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
sfanahata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
| </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.
This comment was marked as outdated.
Sorry, something went wrong.
| }); | ||
| ``` | ||
|
|
||
| <Alert>Captured bodies will be truncated to 150k characters max.</Alert> |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: