View Source otel_sampler_parent_based (opentelemetry v1.4.1)
An otel_sampler
that makes the decision based on the parent.
This sampler decides with the following possibilities:
- 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()
.
This is one of the built-in samplers provided by the OpenTelemetry SDK.
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()}.
Options to configure this sampler.