lib: improve sentry integration

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-18 11:29:36 +02:00
parent 2498e72f5d
commit bc6aef7af2
1 changed files with 8 additions and 1 deletions

View File

@ -89,6 +89,13 @@ def before_send(event: dict, hint: dict) -> Optional[dict]:
if isinstance(exc_value, ignored_classes):
return None
if "logger" in event:
if event["logger"] in ["dbbackup", "botocore"]:
if event["logger"] in [
"dbbackup",
"botocore",
"kombu",
"asyncio",
"multiprocessing",
"django_redis",
]:
return None
return event