Skip to content

Commit 2de4cfe

Browse files
committed
fix(boto3): Remove "hardcoded" origin
- otherwise service-specific spans with different origins would be skipped (e.g. DynamoDB)
1 parent d977af7 commit 2de4cfe

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎sentry_sdk/integrations/boto3/_instrumentation.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,9 @@ def _sentry_request_created(
479479
if span is None:
480480
return
481481

482-
# an ignored streamed span is not activated; avoid enriching its parent.
483-
if isinstance(span, StreamedSpan):
484-
if not (span.get_attributes().get(SPANDATA.SENTRY_ORIGIN) == ORIGIN):
485-
return
482+
# an ignored streamed span is not active; avoid enriching its parent.
483+
if isinstance(span, StreamedSpan) and span.active:
484+
return
486485

487486
_set_request_attributes(span, request)
488487
# each attempt has a fresh `request.context`; carry the active client span.

0 commit comments

Comments
 (0)