-
Notifications
You must be signed in to change notification settings - Fork 309
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
Respect and propagate X-Datadog-Sampling-Priority. #217
Merged
Merged
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
0f737d5
Respect and propagate X-Datadog-Sampling-Priority.
stephenh f9feb99
Add test that samplingPriority is passed to child spans.
stephenh ef890a9
Remove extra newline.
stephenh 42c6c31
Include the sampling priority metric key.
stephenh 49dd480
Fix ifs that should check undefined; keep sampled separate.
stephenh 63e3deb
Test all priorities in span.spec.js as well.
stephenh 884f08f
Put sampled back before baggageItems.
stephenh 5f5a81e
Cover all priorities in span_context.spec.js.
stephenh 7a1716b
If priority header isn't available, still use sampling.
stephenh fdc9211
update sampling priority with the full functionality
rochdev 4ba9ecc
code cleanup
rochdev e4bc77b
Merge remote-tracking branch 'upstream/v0.6.0' into add-sample-priori…
rochdev 12c5623
fix merge result + code cleanup
rochdev 70b1dde
fix tests
rochdev f60006c
code cleanup
rochdev 2ad16a8
move priority sampling out of the propagators
rochdev 3cd0d5a
add a constant for sampling priority key
rochdev 3e7a98a
make priorities a set to avoid looping the array
rochdev 8fb4100
code cleanup
rochdev 0a83e0c
code cleanup
rochdev c5e82a2
code cleanup
rochdev 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict' | ||
|
||
const priority = require('./priority') | ||
const tags = require('./tags') | ||
|
||
module.exports = { | ||
priority, | ||
tags | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
USER_REJECT: -1, | ||
AUTO_REJECT: 0, | ||
AUTO_KEEP: 1, | ||
USER_KEEP: 2 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
SERVICE_NAME: 'service.name', | ||
RESOURCE_NAME: 'resource.name', | ||
SPAN_TYPE: 'span.type', | ||
SAMPLING_PRIORITY: 'sampling.priority' | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
SAMPLE_RATE_METRIC_KEY: '_sample_rate' | ||
SAMPLE_RATE_METRIC_KEY: '_sample_rate', | ||
SAMPLING_PRIORITY_KEY: '_sampling_priority_v1' | ||
} |
This file contains 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 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 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 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 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 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.
TextMapPropagator
doesn't accept aprioritySampler
anymore, right?