Skip to content

Commit

Permalink
Fix ready call - ignore sentry (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh authored Apr 24, 2023
1 parent 7eb1be8 commit f034259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fyle_partner_dashboard_api/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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
Expand Down

0 comments on commit f034259

Please sign in to comment.