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
-
Method Details
-
sample
- 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.
-