getsentry / getsentry/sentry-dart
Capture HTTP Response Body for `SentryHttpClient`
Open
Dart
Improvement
Traces
- Dominant language
- Dart
- Stars
- 873
- Forks
- 299
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 30
Description
### Problem Statement
I would like to automatically capture the following information for all outgoing requests made by `SentryHttpClient`:
- request URL
- request method
- request headers
- request body
- response status code
- response headers
- response body
This should be opt-in, similar to `networkDetailAllowUrls` in the JavaScript SDK: https://docs.sentry.io/platforms/javascript/session-replay/configuration/#network-details
### Solution Brainstorm
https://github.com/getsentry/rfcs/blob/main/text/0022-response-context.md
### Are you willing to submit a PR?
Yes
Contributor guide
Assessment
This issue has not been assessed yet.