Does the sampler instance always need to return the same attributes per decision? #783
Labels
area:sampling
Related to trace sampling
area:sdk
Related to the SDK
release:after-ga
Not required before GA release, and not going to work on before GA
spec:trace
Related to the specification/trace directory
Related to #634.
In https://github.com/open-telemetry/opentelemetry-specification/blob/bc272ab52869df2145065d55300d721ff008e34b/specification/trace/sdk.md#shouldsample, the spec says:
I'm not sure what is meant by this. Does the same sampler instance always need to return the same attributes for the same decision? That would seem very restrictive. Or is this just specifying that the runtime instance returned needs to be immutable? If the latter, I think this is an implementation detail and should not be added to the specification, because it is language dependent. We also don't say for the attributes "string values must be copied so that modifications to them are not reflected on the Span", which would make sense e.g. for C++ with its modifiable std::strings.
CC @alolita, should I assign this to you too?
The text was updated successfully, but these errors were encountered: