Tracing: don't record HTTP OPTIONS and HEAD transactions#2181
Open
natikgadzhi wants to merge 6 commits intogetsentry:masterfrom
Open
Tracing: don't record HTTP OPTIONS and HEAD transactions#2181natikgadzhi wants to merge 6 commits intogetsentry:masterfrom
natikgadzhi wants to merge 6 commits intogetsentry:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
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
🚀 New features to boost your workflow:
|
Contributor
Author
|
Added the unit tests, and moved the changelog entry to Unreleased. |
cb4cd77 to
923eb4e
Compare
st0012
reviewed
Nov 29, 2023
923eb4e to
5d990bc
Compare
sl0thentr0py
requested changes
Nov 30, 2023
Member
sl0thentr0py
left a comment
There was a problem hiding this comment.
you'll need the same logic in
and
Contributor
Author
|
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
Contributor
Author
|
@sl0thentr0py, thank you for the guidance <3 I've pushed up the code, with two gotchas where I'd love your input and preference:
|
Contributor
Author
|
Hmmmmmmmm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_exceptionsrack 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.rbis scary. I'll write them up tomorrow.Open questions