Skip to content
Snippets Groups Projects
Commit 02735206 authored by vlorentz's avatar vlorentz Committed by Antoine Lambert
Browse files

Stop reporting RemoteException to Sentry

In practice, RemoteException happens only when a backend service has an internal
error (which is already logged in its own Sentry project) or a query timeout;
and TransientRemoteException only on temporary 502 errors.

Neither are helpful, and they clutter Sentry by bursting a dozen such errors
a couple of times a week.
parent 967313c4
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ from django.utils.safestring import mark_safe
from rest_framework.exceptions import APIException
from rest_framework.renderers import JSONRenderer
from swh.core.api import RemoteException, TransientRemoteException
from swh.web.api.renderers import YAMLRenderer
from swh.web.config import get_config
......@@ -168,6 +169,8 @@ def sentry_capture_exception(exc: Exception) -> None:
exceptions.PermissionDenied,
BadInputExc,
NotFoundExc,
RemoteException,
TransientRemoteException,
),
):
# ignore noisy exceptions we cannot do anything about
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment