Skip to content

Composite Sampler #1844

@iNikem

Description

@iNikem

Let's imagine for a second that #1597 is resolved and we have a sampler that drops server spans based on the url. It is safe to assume that for any particular configured Otel SDK we still will need one more sampler, to decide the fate of all other spans. This is already a second example of "composite samplers", the first being existing ParentBased sampler.

This raises several questions:

  1. Should we formalise a notion of composite samplers in the spec?
  2. If yes, should we specify rules of composition? Delegation or list of samplers? Should they be combined as logical "and" or "or"? Short-circuit?
  3. Should env variable OTEL_TRACES_SAMPLER be expanded to allow for configuration of sampler composition?

Metadata

Metadata

Assignees

Labels

area:sdkRelated to the SDKhelp wantedExtra attention is neededspec:traceRelated to the specification/trace directory

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions