Skip to content

Commit

Permalink
Sending error logs to sentry even if there aren't any exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanu committed Mar 7, 2025
1 parent 827e3a6 commit 5f71409
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion label_studio/core/utils/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@


def event_processor(event, hint):
# skip all transactions without errors
# skip all transactions without exceptions, unless it's a log record
if 'exc_info' not in hint:

if 'log_record' in hint:
return event

Check warning on line 9 in label_studio/core/utils/sentry.py

View check run for this annotation

Codecov / codecov/patch

label_studio/core/utils/sentry.py#L8-L9

Added lines #L8 - L9 were not covered by tests

return None

# skip specified exceptions
Expand Down

0 comments on commit 5f71409

Please sign in to comment.