Counters in Metrics 1.x had two functions:
- To provide a measure for the number of concurrent invocations
- As a metric that can count up to the number of transactions committed, for example
Unfortunately, the first way was the default when using the annotation without specifying the monotonic keyword, which is unexpected and was confusing a lot of users. The second version of this also had its issues, as a counter value could also decrease at will, which violates the understanding that a counter is a monotonically increasing metric.
For this reason, the Metrics working group has decided to change the behavior of counters so they only work as monotonically increasing metrics and to defer the ...