AlwaysOnExemplarFilter implements ExemplarFilter
Read onlyYes
FinalYes
Needs a span context; the sampled flag is ignored.
Interfaces
Methods
- __toString() : string
- shouldSample() : bool
- Determine whether to record an exemplar for this measurement.
Methods
__toString()
public
__toString() : string
Return values
stringshouldSample()
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