Skip to content

OTel sampler is by default "AlwaysOn" but the documentation states different #12443

Open
@GFriedrich

Description

What happened:
The documentation states that the OTel sampler is by default set to "AlwaysOff". But in fact it is "AlwaysOn".

What you expected to happen:
That the documentation aligns with the code.
IMHO it would be best if the code is changed, because a "AlwaysOn" setting can be somewhat heavy in regards to the amount of created traces.

Anything else we need to know:
Default is configured here:

But documentation states something different on these places:

# The available samplers are: AlwaysOn, AlwaysOff, TraceIdRatioBased, Default: AlwaysOff

| [otel-sampler](#otel-sampler) | string | "AlwaysOff" | |

Specifies the sampler to be used when sampling traces. The available samplers are: AlwaysOff, AlwaysOn, TraceIdRatioBased, remote. _**default:**_ AlwaysOff

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.priority/backlogHigher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions