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;
}
Aggregations