From a9328f57a70a8d9d4b7967bcda5bab752061f289 Mon Sep 17 00:00:00 2001 From: Viswas Date: Tue, 12 Nov 2024 02:48:32 +0530 Subject: [PATCH] fix: remove sentry transaction sampling --- fyle_netsuite_api/sentry.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/fyle_netsuite_api/sentry.py b/fyle_netsuite_api/sentry.py index 5190adad..07754782 100644 --- a/fyle_netsuite_api/sentry.py +++ b/fyle_netsuite_api/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', @@ -29,14 +28,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: exc_type, exc_value, tb = hint['exc_info']