Trace Sampling Processor

Description

Performs sampling of traces per a given rate using the Trace ID as the unique identifier. If a trace is rate selected, all spans of the trace are output.

This is an experimental feature that is is still in development. For access to this feature, reach out to your Customer Support Manager or support@mezmo.com.

Use

Two well-known optimization techniques for traces are Deterministic Sampling (Head sampling) and more advanced Tail-based sampling. While head-based sampling will treat all traces equally and sample randomly, Tail-based sampling enables you to sample at different rates for traces you consider to have different levels of importance, based on attributes that traces contain, for example prioritizing traces with errors, latency, or traces that exceed certain performance thresholds. This is implemented in this Processor through conditional statements to define the trace.

This Processor supports sampling of OTel traces only.

Configuration

OptionDescriptionExample
Sample TypeThe type of sampling to invoke.head tail
Trace ID fieldThe field to use as the identifier of a trace..context.trace_id
RateThe rate at which to sample traces. For example, 10 means 1 out of every 10 traces will be sampled.10
Parent Span ID (Tail Only)The field to use as the parent span identifier..parent_span_id
Conditional (Tail Only)Used in conjunction with Rate, a conditional statement to define the field for sampling

Examples

Examples of OTEL traces that can be sampled using the Processor.

The head of a trace indicated by a null parent_id field

JSON
Copy
JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated