diff --git a/admin_settings/sentry.py b/admin_settings/sentry.py index dafd069..976e5ca 100644 --- a/admin_settings/sentry.py +++ b/admin_settings/sentry.py @@ -14,7 +14,6 @@ def init(): send_default_pii=True, integrations=[DjangoIntegration()], environment=os.environ.get('SENTRY_ENV'), - traces_sampler=Sentry.traces_sampler, attach_stacktrace=True, before_send=Sentry.before_send, request_bodies='small', @@ -27,15 +26,6 @@ def init(): ], ) - @staticmethod - def traces_sampler(sampling_context): - # avoiding ready APIs in performance tracing - if sampling_context.get('wsgi_environ') is not None: - if 'ready/' in sampling_context['wsgi_environ']['PATH_INFO']: - return 0 - - return 1 - @staticmethod def before_send(event, hint): if 'exc_info' in hint: