Skip to content

Capture HTTP Response Body for SentryHttpClient #2220

@sumanthratna

Description

@sumanthratna

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions