shade.polaris.io.prometheus.client.exemplars.CounterExemplarSampler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
The newest version!
package io.prometheus.client.exemplars;
/**
* Exemplar sampler for counter metrics.
*/
public interface CounterExemplarSampler {
/**
* @param increment the value added to the counter on this event
* @param previous the previously sampled exemplar, or {@code null} if there is none.
* @return an Exemplar to be sampled, or {@code null} if the previous exemplar does not need to be updated.
* Returning {@code null} and returning {@code previous} is equivalent.
*/
Exemplar sample(double increment, Exemplar previous);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy