struct OpenTelemetry::Sampler::AlwaysOff

Defined in:

samplers/always_off.cr

Constructors

Instance Method Summary

Instance methods inherited from struct OpenTelemetry::Sampler

description description, get_description get_description, should_sample(context : SpanContext, name : String = "", trace_id : Slice(UInt8) | Nil = nil, kind : OpenTelemetry::Span::Kind = OpenTelemetry::Span::Kind::Internal, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute, links : Nil = nil) : SamplingResult
should_sample(span)
should_sample
, to_s(io) to_s

Constructor methods inherited from struct OpenTelemetry::Sampler

new(arg = nil) new

Constructor Detail

def self.new(arg = nil) #

[View source]

Instance Method Detail

def description #

The AlwaysOff sample does not respond to configuration. Thus, the description is never anyting but a plain label.


[View source]