Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions sentry_sdk/integrations/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,24 +174,6 @@ def __call__(
)
except BaseException:
reraise(*_capture_exception())
finally:
if isinstance(span, StreamedSpan):
already_set = (
span.name != _DEFAULT_TRANSACTION_NAME
and span.get_attributes().get("sentry.span.source")
in [
SegmentSource.COMPONENT.value,
SegmentSource.ROUTE.value,
SegmentSource.CUSTOM.value,
]
)
if not already_set:
with capture_internal_exceptions():
span.name = _DEFAULT_TRANSACTION_NAME
span.set_attribute(
"sentry.span.source",
SegmentSource.ROUTE.value,
)
finally:
_wsgi_middleware_applied.set(False)

Expand Down
Loading