Skip to content

Commit 5fafecf

Browse files
committed
Merge branch 'ep/py-2362-2mw' into py-2322-port-event-processor-data-to-span-first-rme79
2 parents 4505486 + 48415ad commit 5fafecf

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

sentry_sdk/integrations/starlette.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,11 @@ def _set_request_body_data_on_streaming_segment(
254254
and isinstance(current_span, StreamedSpan)
255255
and not isinstance(current_span, NoOpStreamedSpan)
256256
):
257-
current_span._segment.set_attribute(
258-
"http.request.body.data",
259-
_serialize_request_body_data(info["data"]),
260-
)
257+
with capture_internal_exceptions():
258+
current_span._segment.set_attribute(
259+
"http.request.body.data",
260+
_serialize_request_body_data(info["data"]),
261+
)
261262

262263

263264
@ensure_integration_enabled(StarletteIntegration)

0 commit comments

Comments
 (0)