-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracing: don't record HTTP OPTIONS and HEAD transactions #2181
base: master
Are you sure you want to change the base?
Tracing: don't record HTTP OPTIONS and HEAD transactions #2181
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2181 +/- ##
===========================================
- Coverage 97.43% 66.47% -30.97%
===========================================
Files 102 100 -2
Lines 3817 3749 -68
===========================================
- Hits 3719 2492 -1227
- Misses 98 1257 +1159
|
Added the unit tests, and moved the changelog entry to Unreleased. |
cb4cd77
to
923eb4e
Compare
923eb4e
to
5d990bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll need the same logic in
def start_transaction(env, scope) |
and
def start_transaction(env, scope) |
Just passing by here — I'll clean this up today so we can get it merged! Sorry for the delay. |
5d990bc
to
f670ad4
Compare
f670ad4
to
7afd73d
Compare
@sl0thentr0py, thank you for the guidance <3 I've pushed up the code, with two gotchas where I'd love your input and preference:
|
Hmmmmmmmm
|
Summary
This pull request makes it so HTTP OPTIONS and HEAD requests will not be sampled (traced).
Closes #1864. Based on the approach in getsentry/sentry-javascript#5485
Changes
capture_exceptions
rack app middleware. It felt like the right spot for this, instead of shoving another check inTransaction.set_initial_sample_decision
, because it depends directly on an HTTP request, and thus is rather specific to Rack env.capture_exceptions_spec.rb
is scary. I'll write them up tomorrow.Open questions