public interface MetricsProvider
The Polygene Runtime will automatically look for a service that implements the MetricsProvider interface and use it for internal Runtime metrics, such as the UnitOfWork measuring the time from creation to close.
The Metrics Library is available to add metric functionality to applications in the same way, and will use the same MetricsProvider.
Note that the usual visibility rules applies, so you might have more than one MetricsProvider server, perhaps per layer.
<T extends MetricsFactory> T createFactory(Class<T> factoryType) throws MetricsNotSupportedException
T- The metric type requested.
factoryType- The class of the metric type needed.
MetricsNotSupportedException- when the MetricsProvider is not supporting the factory type requested.