diff --git a/sentry_sdk/integrations/wsgi.py b/sentry_sdk/integrations/wsgi.py index af7b2ca1e2..32dcfd702b 100644 --- a/sentry_sdk/integrations/wsgi.py +++ b/sentry_sdk/integrations/wsgi.py @@ -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)