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 Exemplarsample(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, ornullif there is none.- Returns:
- an Exemplar to be sampled, or
nullif the previous exemplar does not need to be updated. Returningnulland returningpreviousis equivalent.
-
-