Skip to content

Commit 0f877fb

Browse files
.
1 parent 38daa24 commit 0f877fb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sentry_sdk/integrations/django/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,13 @@ def _attempt_resolve_again(
459459

460460
def _after_get_response(request: "WSGIRequest") -> None:
461461
integration = sentry_sdk.get_client().get_integration(DjangoIntegration)
462-
if integration is None or integration.transaction_style != "url":
462+
if integration is None:
463463
return
464464

465465
scope = sentry_sdk.get_current_scope()
466-
_attempt_resolve_again(request, scope, integration.transaction_style)
466+
467+
if integration.transaction_style == "url":
468+
_attempt_resolve_again(request, scope, integration.transaction_style)
467469

468470
span_streaming = has_span_streaming_enabled(sentry_sdk.get_client().options)
469471
if span_streaming:

0 commit comments

Comments
 (0)