Interface CounterExemplarSampler

    • Method Detail

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