Spring Boot - Actuator
Why might this Micrometer Timer code not record the duration as expected?
Timer timer = Timer.builder("task.duration")
.register(meterRegistry);
timer.record(() -> { throw new IllegalStateException(); });