instrument_sampler_always_on (instrument v1.0.0)
View SourceAlways-on sampler that samples every span.
This sampler returns record_and_sample for all spans, meaning all spans will be recorded and exported.
Summary
Functions
Returns the sampler description.
-spec should_sample(Config :: map(), TraceId :: binary(), SpanName :: binary(), SpanKind :: atom(), Attributes :: map(), Links :: list(), ParentCtx :: #span_ctx{trace_id :: <<_:128>> | undefined, span_id :: <<_:64>> | undefined, trace_flags :: 0 | 1, trace_state :: [{binary(), binary()}], is_remote :: boolean()} | undefined) -> #sampling_result{decision :: drop | record_only | record_and_sample, attributes :: map(), trace_state :: [{binary(), binary()}]}.
Always returns record_and_sample.