In case of server-side sampling, it is necessary to let the sampler know that certain spans should not be dropped because their traceId/spanId were used to create Exemplars.
Right now, there is no mechanism that users could use to inject their own logic to signal that a Span was sampled for Exemplars.
Since a Span can be anything (various tracers), this can be tricky so if there is no good general solution for this, some guidance in the documentation (maybe with examples) would be great to guide the users if they should implement their own Sampler or should they add this behavior to their SpanContextSupplier.
In case of server-side sampling, it is necessary to let the sampler know that certain spans should not be dropped because their traceId/spanId were used to create Exemplars. Right now, there is no mechanism that users could use to inject their own logic to signal that a
Span
was sampled for Exemplars.Since a
Span
can be anything (various tracers), this can be tricky so if there is no good general solution for this, some guidance in the documentation (maybe with examples) would be great to guide the users if they should implement their own Sampler or should they add this behavior to theirSpanContextSupplier
.