abstract struct OpenTelemetry::InheritableSampler
- OpenTelemetry::InheritableSampler
- OpenTelemetry::Sampler
- Struct
- Value
- Object
Overview
All Samplers other than the ParentBased sampler should inherit from and implement this interface.
Direct Known Subclasses
- OpenTelemetry::Sampler::AlwaysOff
- OpenTelemetry::Sampler::AlwaysOn
- OpenTelemetry::Sampler::AlwaysRecord
- OpenTelemetry::Sampler::TraceIdRatioBased
Defined in:
sampler.crInstance 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) : SamplingResultshould_sample(span) should_sample, to_s(io) to_s