From a15f69cb4cda3eed60fad50257da4b35efb40581 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 11 Dec 2024 08:38:36 +0900 Subject: [PATCH] Document no support for meta-annotations with @Timed (#5737) See gh-5657 --- docs/modules/ROOT/pages/concepts/counters.adoc | 2 ++ docs/modules/ROOT/pages/concepts/timers.adoc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/modules/ROOT/pages/concepts/counters.adoc b/docs/modules/ROOT/pages/concepts/counters.adoc index 5ac51fcd7f..c0a165ad9a 100644 --- a/docs/modules/ROOT/pages/concepts/counters.adoc +++ b/docs/modules/ROOT/pages/concepts/counters.adoc @@ -88,6 +88,8 @@ public class ExampleService { } ---- +NOTE: `CountedAspect` doesn't support meta-annotations with `@Counted`. + == Function-tracking Counters Micrometer also provides a more infrequently used counter pattern that tracks a monotonically increasing function (a function that stays the same or increases over time but never decreases). Some monitoring systems, such as Prometheus, push cumulative values for counters to the backend, but others publish the rate at which a counter is incrementing over the push interval. By employing this pattern, you let the Micrometer implementation for your monitoring system choose whether to rate-normalize the counter, and your counter remains portable across different types of monitoring systems. diff --git a/docs/modules/ROOT/pages/concepts/timers.adoc b/docs/modules/ROOT/pages/concepts/timers.adoc index 697083df3b..660dd60f04 100644 --- a/docs/modules/ROOT/pages/concepts/timers.adoc +++ b/docs/modules/ROOT/pages/concepts/timers.adoc @@ -114,6 +114,8 @@ public class ExampleService { } ---- +NOTE: `TimedAspect` doesn't support meta-annotations with `@Timed`. + === @MeterTag on Method Parameters To support using the `@MeterTag` annotation on method parameters, you need to configure the `@TimedAspect` to add the `MeterTagAnnotationHandler`.