Interface CounterExemplarSampler

All Known Subinterfaces:
ExemplarSampler
All Known Implementing Classes:
DefaultExemplarSampler

public interface CounterExemplarSampler
Exemplar sampler for counter metrics.
  • Method Summary

    Modifier and Type
    Method
    Description
    sample(double increment, Exemplar previous)
     
  • Method Details

    • sample

      Exemplar sample(double increment, Exemplar previous)
      Parameters:
      increment - the value added to the counter on this event
      previous - the previously sampled exemplar, or null if there is none.
      Returns:
      an Exemplar to be sampled, or null if the previous exemplar does not need to be updated. Returning null and returning previous is equivalent.