Skip to content

Commit

Permalink
Document no support for meta-annotations with @timed (#5737)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored Dec 10, 2024
1 parent 23cd63b commit a15f69c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/concepts/counters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/concepts/timers.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit a15f69c

Please sign in to comment.