Class AlwaysOffSampler

Inheritance Relationships

Base Type

Class Documentation

class AlwaysOffSampler : public opentelemetry::sdk::trace::Sampler

The always off sampler always returns DROP, effectively disabling tracing functionality.

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:

Returns DROP always

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

Description MUST be AlwaysOffSampler