Repository navigation
fix(trace): classify unsampled X-Ray context as AUTO_REJECT - #876
Closed
joeyzhao2018 wants to merge 1 commit into
Closed
joeyzhao2018 wants to merge 1 commit into
joeyzhao2018 wants to merge 1 commit into
Conversation
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 2 Pipeline jobs failed
ℹ️ Info🔁 Datadog re-ran 🔁 Datadog re-ran Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: dcc0c48 | Docs | View more details | Give us feedback! |
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.
What does this PR do?
Map unsampled X-Ray fallback context (
Sampled=0) to numericAUTO_REJECT(0) instead ofUSER_REJECT(-1). This classifies the inherited X-Ray decision as an automatic rejection rather than a user-directed drop.Motivation
The investigation of SVLS-10260 highlighted that X-Ray sampling rejections currently become user-directed Datadog drops. Keep inheriting the rejection when X-Ray merging is enabled, but classify it as automatic. This is not a fix for the trace loss reported there and does not make Datadog resample unsampled X-Ray invocations.
Testing Guidelines
Sampled=1->USER_KEEPandSampled=0-> numericAUTO_REJECT, retaining trace ID, parent ID, and X-Ray source assertions.git diff --checkpassed.integration_tests_local/run.sh. The duplicate local arm64 sweep passed Node 18 and 20 before being stopped after the full CI matrix passed.Additional Notes
Sampled=1still maps toUSER_KEEP. The numeric-priority fix from #850, explicit Datadog-context propagation, and the defaultDD_MERGE_XRAY_TRACES=falseremain unchanged. Unsampled X-Ray metadata subsegments continue to be suppressed. Agent recovery sampling may treat automatic and user-directed rejections differently; deployed AWS behavior has not been tested.Types of Changes
Check all that apply