AlwaysOffExemplarFilter implements ExemplarFilter
Read onlyYes
FinalYes
Never records exemplars.
This filter disables exemplar collection entirely. Use this when you don't need trace-to-metric correlation or want to minimize overhead.
Interfaces
- ExemplarFilter
- Determines whether an exemplar should be recorded for a metric measurement.
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