Flow PHP

AlwaysOnExemplarFilter implements ExemplarFilter

Read onlyYes
FinalYes

Needs a span context; the sampled flag is ignored.

Interfaces

ExemplarFilter

Methods

__toString()  : string
shouldSample()  : bool
Determine whether to record an exemplar for this measurement.

Methods

shouldSample()

Determine whether to record an exemplar for this measurement.

public shouldSample(SpanContext|null $context, int|float $value, array<string|int, mixed> $attributes) : bool
Parameters
$context : SpanContext|null

The current span context, or null if none

$value : int|float

The measurement value

$attributes : array<string|int, mixed>

The measurement attributes

Return values
bool
On this page

Search results