We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d73140b commit f00ce32Copy full SHA for f00ce32
quickbooks_desktop_api/sentry.py
@@ -14,7 +14,6 @@ def init():
14
send_default_pii=True,
15
integrations=[DjangoIntegration()],
16
environment=os.environ.get('SENTRY_ENV'),
17
- traces_sampler=Sentry.traces_sampler,
18
attach_stacktrace=True,
19
before_send=Sentry.before_send,
20
request_bodies='small',
@@ -27,15 +26,6 @@ def init():
27
26
'fyle_rest_auth'],
28
)
29
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
39
@staticmethod
40
def before_send(event, hint):
41
if 'exc_info' in hint:
0 commit comments