getsentry / getsentry/sentry-dart

Capture HTTP Response Body for `SentryHttpClient`

Open
#2,220 9 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.