Skip to content

Commit

Permalink
Fix ready call - ignore sentry (#380)
Browse files Browse the repository at this point in the history
* Fix ready call - ignore sentry

* codecov.yml updated

---------

Co-authored-by: Rushikesh Tayade <[email protected]>
  • Loading branch information
ashwin1111 and ruuushhh authored Apr 24, 2023
1 parent 33442d0 commit c05f6c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
codecov:
require_ci_to_pass: false #post comment only if ci checks have passed
comment:
behavior: new #comment post behavior (update existing, post new, delete and post new)
behavior: default #comment post behavior (update existing, post new, delete and post new)
layout: reach, diff, flags, files #comment format
require_base: true #base report is mandatory to post comment
require_changes: false #only post comment if chages are done
Expand Down
2 changes: 1 addition & 1 deletion fyle_netsuite_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 c05f6c2

Please sign in to comment.