Skip to content

Commit 63c4f15

Browse files
committed
ref: Remove unused segment name setting
1 parent 4f3b56a commit 63c4f15

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

sentry_sdk/integrations/wsgi.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -174,24 +174,7 @@ def __call__(
174174
)
175175
except BaseException:
176176
reraise(*_capture_exception())
177-
finally:
178-
if isinstance(span, StreamedSpan):
179-
already_set = (
180-
span.name != _DEFAULT_TRANSACTION_NAME
181-
and span.get_attributes().get("sentry.span.source")
182-
in [
183-
SegmentSource.COMPONENT.value,
184-
SegmentSource.ROUTE.value,
185-
SegmentSource.CUSTOM.value,
186-
]
187-
)
188-
if not already_set:
189-
with capture_internal_exceptions():
190-
span.name = _DEFAULT_TRANSACTION_NAME
191-
span.set_attribute(
192-
"sentry.span.source",
193-
SegmentSource.ROUTE.value,
194-
)
177+
195178
finally:
196179
_wsgi_middleware_applied.set(False)
197180

0 commit comments

Comments
 (0)