Skip to content

Commit

Permalink
Fix ready call - ignore sentry (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh authored Apr 24, 2023
1 parent 9c892df commit 97da917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fyle_xero_api/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def init():
def traces_sampler(sampling_context):
# avoiding ready APIs in performance tracing
if sampling_context.get('wsgi_environ') is not None:
if sampling_context['wsgi_environ']['PATH_INFO'] in ['/ready']:
if 'ready/' in sampling_context['wsgi_environ']['PATH_INFO']:
return 0

return 0.5

0 comments on commit 97da917

Please sign in to comment.