Package io.prometheus.client.exemplars
Interface CounterExemplarSampler
-
- All Known Subinterfaces:
ExemplarSampler
- All Known Implementing Classes:
DefaultExemplarSampler
public interface CounterExemplarSampler
Exemplar sampler for counter metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Exemplar
sample(double increment, Exemplar previous)
-
-
-
Method Detail
-
sample
Exemplar sample(double increment, Exemplar previous)
- Parameters:
increment
- the value added to the counter on this eventprevious
- the previously sampled exemplar, ornull
if there is none.- Returns:
- an Exemplar to be sampled, or
null
if the previous exemplar does not need to be updated. Returningnull
and returningprevious
is equivalent.
-
-