struct OpenTelemetry::Sampler::ParentBased

Defined in:

samplers/parent_based.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(root : InheritableSampler, remote_parent_sampled : InheritableSampler = AlwaysOn.new, remote_parent_not_sampled : InheritableSampler = AlwaysOff.new, local_parent_sampled : InheritableSampler = AlwaysOn.new, local_parent_not_sampled : InheritableSampler = AlwaysOff.new) #

[View source]
def self.new(arg = nil) #

[View source]

Instance Method Detail

def description : String #
Description copied from struct OpenTelemetry::Sampler

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


[View source]