Skip to content

Commit 984f29a

Browse files
authored
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

sentry_sdk/integrations/dramatiq.py

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy