clarify whether OTEL_TRACE_SAMPLER can contain a list #3830
Labels
sig-issue
A specific SIG should look into this before discussing at the spec
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
I'm trying to implement a new sampler, register it with an SDK, then enable & configure it via environment variables.
Additional context.
The OTEL_TRACES_SAMPLER section of the spec says the value holds "Sampler to be used for traces", and lists some known values which are either individual samplers or a combination (
always_off
,parentbased_always_on
etc). In the PHP SDK, we've implemented it as an enumeration of known values since that's what all the examples look like.However, the spec doesn't say that the field couldn't contain a list of samplers (
parentbased,my_custom_sampler,always_on
), which enables a couple of capabilities:So, I'd like to propose that the spec be adjusted:
The text was updated successfully, but these errors were encountered: