OTEL_TRACES_SAMPLER
The environment variable that chooses the SDK's sampler, with OTEL_TRACES_SAMPLER_ARG as its argument.
In more detail
The default is parentbased_always_on. For traceidratio the argument is a ratio between 0 and 1; the recorded Python SDK fell back to 1.0 when given 2.
Related terms
- sampling — Recording only some traces to save cost, chosen by a rule such as a percentage or by keeping every error and slow request.
Taught in
- Ninety Minutes, No Question Count: Exam Strategy — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Six Out Of Twelve At One In Four: Samplers — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Nine Lines, Five Bugs: Configuring The SDK — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Six Launches, No Code Changes: Language Agents — OpenTelemetry Certified Associate (OTCA) Exam Prep
- API And SDK Sprint: Fourteen Predictions — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Forty Four Of Sixty: The Mock And What It Tells You — OpenTelemetry Certified Associate (OTCA) Exam Prep
- The Evening Before: Final Review — OpenTelemetry Certified Associate (OTCA) Exam Prep