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 simpleclient Show documentation
Show all versions of simpleclient Show documentation
Core instrumentation library for the simpleclient.
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