-
Notifications
You must be signed in to change notification settings - Fork 133
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
Add sampling info to Tracestate headers #858
Conversation
es
field
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
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.
Looks good overall. What happens if the es
vendor value is invalid?
Is there a test that covers the case where a downstream transaction receives traceparent
, and either tracestate
is missing or doesn't have a valid es
entry? In that case the transaction should have no sample_rate
field.
Not sure but depends on what we mean by invalid? Not matching the |
Yes (all of the above :)) Here's a few test cases which I think we should consider, to be defensive:
|
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.
LGTM. I feel like we might all benefit from a Gherkin spec for this, WDYT?
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.
Didn't follow semantics to closely, but LGTM from a ruby perspective.
I agree. As this would add significant complexity (incoming and outgoing reqs) to the currently very simple gherkin specs (spec, really), I'm going to add it in a separate PR. |
See elastic/apm#307 (WIP)