struct OpenTelemetry::Sampler::ParentBased
- OpenTelemetry::Sampler::ParentBased
- OpenTelemetry::Sampler
- Struct
- Value
- Object
Defined in:
samplers/parent_based.crConstructors
- .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)
- .new(arg = nil)
Instance Method Summary
-
#description : String
This should probably be overridden with a specific, appropriate name.
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) : SamplingResultshould_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)
#
Instance Method Detail
Description copied from struct OpenTelemetry::Sampler
This should probably be overridden with a specific, appropriate name.