Skip to content
Search
DSL · Telemetry

attribute_matching_sampler

Definition

/**
 * Create an AttributeMatchingSampler. Drops spans whose start-time attributes match
 * the filter (or keeps ONLY matching spans when the filter's exclude is false), and
 * defers all other spans to the delegate sampler.
 *
 * Only attributes available at span start are visible; attributes added later are not.
 *
 * @param AttributeFilter $filter The attribute filter evaluated against the span's start attributes
 * @param Sampler $delegate Sampler that decides spans which do not match (default: AlwaysOnSampler)
 */
attribute_matching_sampler(AttributeFilter $filter, Sampler $delegate) : AttributeMatchingSampler

Contributors

Built in the open.

Join us on GitHub
scroll back to top