We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4505486 + 48415ad commit 5fafecfCopy full SHA for 5fafecf
1 file changed
sentry_sdk/integrations/starlette.py
@@ -254,10 +254,11 @@ def _set_request_body_data_on_streaming_segment(
254
and isinstance(current_span, StreamedSpan)
255
and not isinstance(current_span, NoOpStreamedSpan)
256
):
257
- current_span._segment.set_attribute(
258
- "http.request.body.data",
259
- _serialize_request_body_data(info["data"]),
260
- )
+ with capture_internal_exceptions():
+ current_span._segment.set_attribute(
+ "http.request.body.data",
+ _serialize_request_body_data(info["data"]),
261
+ )
262
263
264
@ensure_integration_enabled(StarletteIntegration)
0 commit comments