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, 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.
-