You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some research I'm now trying to suppress these in a Sentry before_send hook:
defbefore_send(event, hint):
"""Suppress certain events from being submitted to Sentry"""if"log_record"inhint:
rec=hint["log_record"]
ifrec.name=="django-q":
# See https://github.com/django-q2/django-q2/blob/7fb7fca176eceb5112196b6620cd336a616124df/django_q/monitor.py#L58 # noqa: E501logger.info("Suppressing Sentry event submission for Django-Q internals")
returnNonereturnevent
It would be nice if this would work out if the box.
The text was updated successfully, but these errors were encountered:
whyscream
changed the title
django-q-sentry does not ignore internal django-q errors
Internal django-q errors are not ignored
Jul 19, 2023
An attempt is made to ignore internal logging from Django-Q itself in
django-q-sentry/django_q_sentry/sentry.py
Lines 7 to 9 in 6ed0b37
This doesn't seem to work however: in Sentry I'm receiving ERROR log messages about failed tasks in Django (generated at https://github.com/django-q2/django-q2/blob/7fb7fca176eceb5112196b6620cd336a616124df/django_q/monitor.py#L57-L65)
After some research I'm now trying to suppress these in a Sentry
before_send
hook:It would be nice if this would work out if the box.
The text was updated successfully, but these errors were encountered: