Skip to content

MicroProfile Metrics 1.1

Compare
Choose a tag to compare
@pilhuhn pilhuhn released this 18 Dec 19:54

Changes in 1.1 releative to 1.0 are

  • Improved TCK
  • org.eclipse.microprofile.metrics.MetricRegistry.register(String name, Metric, Metadata) is deprecated.
    Use org.eclipse.microprofile.metrics.MetricRegistry.register(Metadata, Metric) instead, where Metadata
    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 flag reusable that indicates that the metric name can be registered more than once. Default is false 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>