Class AlwaysOnSampler

Inheritance Relationships

Base Type

Class Documentation

class AlwaysOnSampler : public opentelemetry::sdk::trace::Sampler

The always on sampler is a default sampler which always return Decision::RECORD_AND_SAMPLE

Public Functions

inline virtual SamplingResult ShouldSample(const opentelemetry::trace::SpanContext &parent_context, opentelemetry::trace::TraceId, nostd::string_view, opentelemetry::trace::SpanKind, const opentelemetry::common::KeyValueIterable&, const opentelemetry::trace::SpanContextKeyValueIterable&) noexcept override
Returns:

Always return Decision RECORD_AND_SAMPLE

inline virtual nostd::string_view GetDescription() const noexcept override
Returns:

Description MUST be AlwaysOnSampler