MicroProfile Metrics 1.1
Changes in 1.1 releative to 1.0 are
- Improved TCK
org.eclipse.microprofile.metrics.MetricRegistry.register(String name, Metric, Metadata)
is deprecated.
Useorg.eclipse.microprofile.metrics.MetricRegistry.register(Metadata, Metric)
instead, whereMetadata
already has a field for the name.- Global tags are now supplied via the means of MicroProfile Config (the env variable is still valid).
- Annotations and
Metadata
can now have a flagreusable
that indicates that the metric name can be registered more than once. Default isfalse
as in Metrics 1.0.
To get started with MicroProfile Metrics 1.1, add the following dependency to your pom:
<dependency>
<groupId>org.eclipse.microprofile.metrics</groupId>
<artifactId>microprofile-metrics-api</artifactId>
<version>1.1</version>
</dependency>