Skip to content

Add properties to select OpenTelemetry's sampler #49548

Description

@mhalbritter

Right now, we always use a parentBased(traceIdRatioBased) based sampler with a probability read from management.tracing.sampling.probability.

Looking at the documentation, those are the supported samplers:

Known values for OTEL_TRACES_SAMPLER are:

  • "always_on": AlwaysOnSampler
  • "always_off": AlwaysOffSampler
  • "traceidratio": TraceIdRatioBased
  • "parentbased_always_on": ParentBased(root=AlwaysOnSampler)
  • "parentbased_always_off": ParentBased(root=AlwaysOffSampler)
  • "parentbased_traceidratio": ParentBased(root=TraceIdRatioBased)

We could add a new property management.opentelemetry.tracing.sampler. The trace ratio sampler would use management.tracing.sampling.probability.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions