All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.shade.io.prometheus.client.exemplars.CounterExemplarSampler Maven / Gradle / Ivy

There is a newer version: 1.9.4.Final
Show newest version
package com.aliyun.openservices.shade.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