-
Notifications
You must be signed in to change notification settings - Fork 888
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
Allow samplers to modify tracestate #988
Changes from 4 commits
43bb201
d4b80a6
d050af3
8e5bab6
e73146e
652a1c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -29,6 +29,8 @@ New: | |||||
* `exception.escaped` semantic span event attribute was added | ||||||
([#784](https://github.com/open-telemetry/opentelemetry-specification/pull/784), | ||||||
[#946](https://github.com/open-telemetry/opentelemetry-specification/pull/946)) | ||||||
- Allow samplers to modify tracestate | ||||||
([#856](https://github.com/open-telemetry/opentelemetry-specification/pull/988/)) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Updates: | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -99,6 +99,11 @@ It produces an output called `SamplingResult` which contains: | |||||
* `RECORD_AND_SAMPLE` - `IsRecording() == true` AND `Sampled` flag` MUST be set. | ||||||
* A set of span Attributes that will also be added to the `Span`. The returned | ||||||
object must be immutable (multiple calls may return different immutable objects). | ||||||
* A `Tracestate` that will be associated with the `Span` through the new | ||||||
`SpanContext`. | ||||||
Note: If the sampler returns an empty `Tracestate` here, the `Tracestate` will be cleared, | ||||||
so samplers should normally return the passed-in `Tracestate` if they do not intend | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In a Note, we should not have upper-case requirements. If you want reword it, also drop the "Note:", and probably make it a MUST |
||||||
to change it. | ||||||
|
||||||
#### GetDescription | ||||||
|
||||||
|
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.
Otherwise it sounds like something optional but this actually changed the interface and SIGs will have to implement this.