Closed thomassuedbroecker closed 4 years ago
This is an intentional change in MP-2.0 because the old default behaviour was @Counted(monotonic=false), which is not what folks expected. In 2.0 this changed and @Counted is always monotonic. If you need the monotonic=false behaviour, then have a look at @ConcurrentGauge
Problem:
When I update from MicroProfile 2.1. to MicroProfile 3.0. the value
monotonic = true
is missing, when we use the [MicroProfile @counted] annotation (https://github.com/eclipse/microprofile-metrics/blob/master/api/src/main/java/org/eclipse/microprofile/metrics/annotation/Counted.java)Configuration:
Related documentation in openliberty.