- All Known Implementing Classes:
- CodahaleMetrics.CodahaleMetricsScope, LegacyMetrics.LegacyMetricsScope
public interface MetricsScope
Metrics Scope to represent duration of an event.
Implementation can capture information like the average duration of open scopes,
number of open scopes, number of completed scopes.
Scopes are created via the Metrics framework (see Metrics#createScope or Metrics$createStoredScope)
Scope may be stored by the Metrics framework via 'storedScope' concept for further reference.
In either case, it is the caller's responsibility to end the scope via the Metrics framework (see Metrics#endScope)