ExemplarFilter extends Stringable
Methods
- shouldSample() : bool
- Determine whether to record an exemplar for this measurement.
Methods
shouldSample()
Determine whether to record an exemplar for this measurement.
public
shouldSample(null|SpanContext $context, float|int $value, array<string, mixed> $attributes) : bool
Parameters
- $context : null|SpanContext
-
The current span context, or null if none
- $value : float|int
-
The measurement value
- $attributes : array<string, mixed>
-
The measurement attributes