Skip to content

Commit

Permalink
ref(ingest): Set no_celery_mode tag (#79305)
Browse files Browse the repository at this point in the history
Directly call `sentry_sdk.set_tag()` to set a tag on the transaction,
since the previous implementation may not have been working
  • Loading branch information
0Calories authored Oct 18, 2024
1 parent 4ed53d2 commit 6543425
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sentry/ingest/consumer/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@ def process_event(
if data.get("type") == "transaction":
if no_celery_mode:
with sentry_sdk.start_span(op="ingest_consumer.process_transaction_no_celery"):
transaction = sentry_sdk.get_current_scope().transaction

if transaction is not None:
transaction.set_tag("no_celery_mode", True)
sentry_sdk.set_tag("no_celery_mode", True)

process_transaction_no_celery(data, project_id, start_time)
else:
Expand Down

0 comments on commit 6543425

Please sign in to comment.