Skip to content

Commit

Permalink
update before_send to read se from event (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdzhong authored Nov 27, 2023
1 parent ac9269b commit 16dea9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flask/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
def before_send(event, hint):
# 'se' tag may have been set in app.before_request
se = None
with sentry_sdk.configure_scope() as scope:
if 'se' in scope._tags:
se = scope._tags['se']
if 'se' in event['tags']:
se = event['tags']['se']

if se == "tda":
event['fingerprint'] = ['{{ default }}', se, RELEASE]
Expand Down

0 comments on commit 16dea9b

Please sign in to comment.