Search in sources :

Example 1 with StepFunctionCounter

use of io.micrometer.core.instrument.step.StepFunctionCounter in project micrometer by micrometer-metrics.

the class AtlasMeterRegistry method newFunctionCounter.

@Override
protected <T> FunctionCounter newFunctionCounter(Meter.Id id, T obj, ToDoubleFunction<T> countFunction) {
    FunctionCounter fc = new StepFunctionCounter<>(id, clock, atlasConfig.step().toMillis(), obj, countFunction);
    newMeter(id, Meter.Type.COUNTER, fc.measure());
    return fc;
}
Also used : StepFunctionCounter(io.micrometer.core.instrument.step.StepFunctionCounter) StepFunctionCounter(io.micrometer.core.instrument.step.StepFunctionCounter)

Aggregations

StepFunctionCounter (io.micrometer.core.instrument.step.StepFunctionCounter)1