asgi: ignore lifespan requests, remove healthcheck events from sentry

This commit is contained in:
Jens Langhammer
2020-09-06 16:51:50 +02:00
parent 219e16f8e5
commit bf4763d946
3 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,7 @@ from botocore.client import ClientError
from django.core.exceptions import DisallowedHost, ValidationError
from django.db import InternalError, OperationalError, ProgrammingError
from django_redis.exceptions import ConnectionInterrupted
from redis.exceptions import ConnectionError as RedisConnectionError
from redis.exceptions import RedisError
from rest_framework.exceptions import APIException
from structlog import get_logger
@ -24,6 +25,7 @@ def before_send(event, hint):
ConnectionInterrupted,
APIException,
ConnectionResetError,
RedisConnectionError,
WorkerLostError,
DisallowedHost,
ConnectionResetError,