Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counted annotation not reporting metrics #531

Open
quinonem opened this issue Apr 12, 2023 · 0 comments
Open

Counted annotation not reporting metrics #531

quinonem opened this issue Apr 12, 2023 · 0 comments

Comments

@quinonem
Copy link

quinonem commented Apr 12, 2023

Expected Behavior

Counter is published when annotation @Counted is used and method is hit, similar to behavour seen when using @Timed

Actual Behaviour

Counter is not being intercepted for methods annotated with @Counted

Steps To Reproduce

1> Annotate singleton method with @counted

2> Setup micronaut test to call method.

3> Verify that metric is published to meterRegistry

Test project setup with reproduction steps.
Annotated Singleton: https://github.com/quinonem/micronaut-counter/blob/main/src/main/java/com/example/MyService.java

Test Verification: https://github.com/quinonem/micronaut-counter/blob/main/src/test/java/com/example/ApplicationTest.java

Environment Information

Mac OS 13.2.1
JDK 11

Example Application

https://github.com/quinonem/micronaut-counter

Version

3.8.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant