sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Capture outgoing HTTP request & response bodies with Node SDK

Open AbhiPrasad opened this issue 2 years ago • 3 comments

Problem Statement

Allow for outgoing HTTP request & response bodies to be added to breadcrumbs/spans.

Similar to work done in https://github.com/getsentry/sentry-javascript/pull/7287

Solution Brainstorm

NOT THE DEFAULT due to PII reasons

Should be gated by sendDefaultPii

AbhiPrasad avatar Mar 09 '23 10:03 AbhiPrasad

This is a very important point. In many cases, the content of the body, both in the request and the response, is crucial to understanding the captured error

Kromtar avatar Jun 09 '23 15:06 Kromtar

+1

EvilaMany avatar Feb 10 '24 20:02 EvilaMany

+1 Or even just a backend response on certain circumstances (on error) would be great to understand what's going on.

antonmorya avatar Feb 19 '24 08:02 antonmorya