abstract struct OpenTelemetry::Sampler

Direct Known Subclasses

Defined in:

sampler.cr
sampler/sampling_result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(arg = nil) #

The generic initializer should always accept an arg, even if that arg isn't used. This just makes life easier for implementers.


[View source]

Instance Method Detail

def description #

This should probably be overridden with a specific, appropriate name.


[View source]
def get_description #

Crystal doesn't tend to yuse get_* names, but this name is provided as an alias for #description to be more spec compliant, as it request getDescription or a close equivalent.


[View source]
def 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 #

[View source]
def should_sample(span) #

[View source]
def to_s(io) #

[View source]