Skip to content

Commit f00ce32

Browse files
fix: remove sentry transaction sampling (#115)
(cherry picked from commit 47ca357)
1 parent d73140b commit f00ce32

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

quickbooks_desktop_api/sentry.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def init():
1414
send_default_pii=True,
1515
integrations=[DjangoIntegration()],
1616
environment=os.environ.get('SENTRY_ENV'),
17-
traces_sampler=Sentry.traces_sampler,
1817
attach_stacktrace=True,
1918
before_send=Sentry.before_send,
2019
request_bodies='small',
@@ -27,15 +26,6 @@ def init():
2726
'fyle_rest_auth'],
2827
)
2928

30-
@staticmethod
31-
def traces_sampler(sampling_context):
32-
# avoiding ready APIs in performance tracing
33-
if sampling_context.get('wsgi_environ') is not None:
34-
if 'ready/' in sampling_context['wsgi_environ']['PATH_INFO']:
35-
return 0
36-
37-
return 1
38-
3929
@staticmethod
4030
def before_send(event, hint):
4131
if 'exc_info' in hint:

0 commit comments

Comments
 (0)