Interface LongRunningMetricTimer


@Internal @ParametersAreNonnullByDefault public interface LongRunningMetricTimer
Object that is used to collect time metrics about the execution a block of code.
     LongRunningMetricTimer timer = Metrics.longRunningTimer("my-metric");
     try (Ticker ignored = timer.start()) {
         // monitored code block
     }
 
Since:
3.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Starts a ticker for a monitored code block
  • Method Details