diff --git a/ms_business_central_api/sentry.py b/ms_business_central_api/sentry.py index f8822bb..5a52df7 100644 --- a/ms_business_central_api/sentry.py +++ b/ms_business_central_api/sentry.py @@ -13,22 +13,12 @@ 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', in_app_include=['apps.users', 'apps.workspaces', 'apps.mappings', 'apps.fyle', 'apps.business_central', 'apps.accounting_exports', 'fyle_rest_auth', 'fyle_accounting_mappings'], ) - @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: