Skip to content

Add mechanism to mark Spans as "sampled for Exemplars" #843

@jonatan-ivanov

Description

@jonatan-ivanov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions