Skip to content

Commit

Permalink
Merge branch 'master' into update-netsuite-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 authored Nov 12, 2024
2 parents 1c7dc6d + ebc243b commit 19df347
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions fyle_netsuite_api/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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']
Expand Down

0 comments on commit 19df347

Please sign in to comment.