View Source otel_sampler_parent_based (opentelemetry v1.5.0)
An otel_sampler that makes the decision based on the parent.
- a remote parent that is sampled (by default
always_on); - a remote parent that is not sampled (by default
always_off); - a local parent that is sampled (by default
always_on); - a local parent that is not sampled (by default
always_off); - no parent (by default
always_on).
For each of these cases a different sampler can be configured. For options, see opts().
Summary
Types
-type opts() :: #{remote_parent_sampled => otel_sampler:sampler_spec(), remote_parent_not_sampled => otel_sampler:sampler_spec(), local_parent_sampled => otel_sampler:sampler_spec(), local_parent_not_sampled => otel_sampler:sampler_spec(), root => otel_sampler:sampler_spec()}.