new SamplingResult spec makes it more expensive/difficult for Samplers that don't want to modify TraceState #1031
Labels
area:sampling
Related to trace sampling
area:sdk
Related to the SDK
priority:p3
Lowest priority level
release:allowed-for-ga
Editorial changes that can still be added before GA since they don't require action by SIGs
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
Recently merged PR #988 added a field to the SamplingResult API for the modified TraceState. Most samplers (and, indeed, all the built-in samplers) do not modify the TraceState, and hence could previously return one of several constant
SamplingResult
s in almost all cases. Now, every response needs to include the passed in parent TraceState if it doesn't want to modify it. I would like to make it easy to do the most common thing, but possible to do the more complex thing (i.e. modifying the TraceState).I propose that the SamplingResult be extended to include a boolean field, defaulting to
false
that signals to the SDK whether a new, updated TraceState is to be used for the Span. So, by default, Samplers will not modify the TraceState.The text was updated successfully, but these errors were encountered: