OpenTelemetry PHP

ComposableRuleBased
in package
implements ComposableSamplerInterface

FinalYes

Evaluates (predicate, sampler) rules in order and returns the intent of the first matching rule.

When no rule matches the span is dropped.

Tags
experimental

Table of Contents

Interfaces

ComposableSamplerInterface
A sampler that returns its sampling preference (a {@see SamplingIntentInterface}) instead of a decision.

Properties

$description  : string
$rules  : array<int, PredicatedSampler>

Methods

__construct()  : mixed
getDescription()  : string
getSamplingIntent()  : SamplingIntentInterface

Properties

Methods

getDescription()

public getDescription() : string
Attributes
#[Override]
Return values
string
On this page

Search results