OpenTelemetry PHP

ComposableAnnotating
in package
implements ComposableSamplerInterface

FinalYes

Delegates the decision to another composable sampler and adds attributes to sampled spans.

Attributes of the delegate are kept; on a key conflict the attributes of this sampler win.

Tags
experimental

Table of Contents

Interfaces

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

Properties

$attributes  : array<string|int, mixed>
$delegate  : ComposableSamplerInterface
$description  : string

Methods

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

Properties

Methods

getDescription()

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

Search results