Skip to content

Commit 984f29a

Browse files
authoredMar 25, 2025··
fix(integrations/dramatiq): use set_transaction_name (#4175)
The Dramatiq integration is using a deprecated method to set the scope's transaction name, use set_transaction_name instead. "Assigning to scope.transaction directly is deprecated: use scope.set_transaction_name() instead."
1 parent 08bbe00 commit 984f29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎sentry_sdk/integrations/dramatiq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def before_process_message(self, broker, message):
9595
message._scope_manager.__enter__()
9696

9797
scope = sentry_sdk.get_current_scope()
98-
scope.transaction = message.actor_name
98+
scope.set_transaction_name(message.actor_name)
9999
scope.set_extra("dramatiq_message_id", message.message_id)
100100
scope.add_event_processor(_make_message_event_processor(message, integration))
101101

0 commit comments

Comments
 (0)
Please sign in to comment.