
by David Chan and Charlotte Holt
MicroProfile Metrics 2.0 introduces several changes over MicroProfile Metrics 1.x. If you’ve previously written an application using Metrics 1.x, you might need to make some changes to the app to migrate it to Metrics 2.0. In particular, the @Counted annotation in Metrics 1.x could be monotonic or non-monotonic but, in Metrics 2.0, is now only monotonic with a separate @ConcurrentGauge annotation for non-monotonic counting.