-
Notifications
You must be signed in to change notification settings - Fork 548
Port sample_rate
update to potel-base
#4069
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3061f57
Port traces_sample_rate update to potel-base
sentrivana 9968358
Merge branch 'potel-base' into ivana/potel/port-sample-rate-update
sentrivana d2351e7
Added one more test
antonpirker 73c0543
Merge branch 'ivana/potel/port-sample-rate-update' of github.com:gets…
antonpirker d6fae76
update test
sentrivana 7649f34
Test case to try to override incoming with traces_sample_rate
antonpirker 7f95458
Merge branch 'ivana/potel/port-sample-rate-update' of github.com:gets…
antonpirker 1a09fc5
updated test
antonpirker 0064118
Updated test
antonpirker 0f56682
In case the sentry-trace says we defer the sampling descission, overr…
antonpirker 56a9eae
simplify
sentrivana f60670c
fix test
sentrivana e434be1
cleanup
antonpirker eb93d9c
Merge branch 'ivana/potel/port-sample-rate-update' of github.com:gets…
antonpirker 01acd94
...testing ci
sentrivana 62f3122
try with monkeypatch
sentrivana d177d6e
Merge branch 'potel-base' into ivana/potel/port-sample-rate-update
sentrivana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
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.
Added this change, to make sure we set sentry-sampled to deferred in any case. If there is already a entry sentry-sampled in the trace_state then .add() will not do anything.
(There can be a sentry-sampled in the trace_state if the upstream SDK sends the
sentry-sampled
DSC entry with thebaggage
http request. If there was no upstream sampling descision, this entry should either not be sent, of if sent than asNone
.)This change works in both cases.