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.
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
Probability sampling specification #1899
Probability sampling specification #1899
Changes from 3 commits
61c34d9
81fd01b
34be244
9607248
bca0643
1a883f0
9b51634
cf91468
2cdc624
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
probability when the
Sampled
?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.
Where is this defined in the data-model? Why is this needed if the tracestate is already present?
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.
(Remember this PR is a draft until all the OTEPs merge.)
The field
log_head_adjusted_count
is described in https://github.com/open-telemetry/oteps/blob/main/text/trace/0170-sampling-probability.md.You make a valid point about
tracestate
. On the other hand, it's less clearly part of the data model if the user is required to parse thetracestate
(twice, as there are two syntaxes) to recover the information. Besides,tracestate
is not an ideal solution in the long term. Our best long term solution is to modify the W3Ctraceparent
to include a few extra bytes. Then, the rationale of storinglog_head_adjusted_count
as an independent field is that we may have other means of determininglog_head_adjusted_count
in the future.For now, I would suggest that OTel erases its own
tracestate
record from the span data and specify fields for anything that's part of the data model. As it stands, ther
value from OTEP 168 is not being recorded and as far as I know, no one has asked for that.