Allow to alter sampler configuration

Created on 12 February 2024, 10 months ago
Updated 2 March 2024, 9 months ago

Problem/Motivation

Allow to change sampler configuration.

Steps to reproduce

$this->fillEnv(Variables::OTEL_TRACES_SAMPLER, 'always_on'); set this environment variable and try already populated traceId&spanId without sampled:0 header you'll see, opentelemetry will not save this log.

Proposed resolution

Tracer constructor must be populated with SamplerFactory.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024