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

Possible incorrect property specified for Enabling Annotations #370

Closed
jhopperzw opened this issue Aug 23, 2024 · 2 comments
Closed

Possible incorrect property specified for Enabling Annotations #370

jhopperzw opened this issue Aug 23, 2024 · 2 comments
Labels

Comments

@jhopperzw
Copy link

In SB 2.5, we tried setting the property management.observations.annotations.enabled=true based on this section https://docs.spring.io/spring-boot/reference/actuator/observability.html#actuator.observability.annotations. After this, we could not see any of the Metrics for @Timed.

However, if we change this to micrometer.observations.annotations.enabled=true, the metrics started to appear.

@jonatan-ivanov
Copy link
Member

jonatan-ivanov commented Aug 23, 2024

You might opened this in the wrong repo, the docs you linked and the property you provided does not belong to Micrometer but to Spring Boot.
Also, Spring Boot 2.5 reached its end of life at 2022-05-19, it's out of support, you need to upgrade. The reference doc you linked is for the latest version (3.3 right now), not for 2.5. Boot 2.5 does not support the Observation API and it does not have the property you mentioned so it will do nothing, this is the expected behavior.

However, if we change this to micrometer.observations.annotations.enabled=true, the metrics started to appear.

This is unexpected, Boot 2.5 does not have this property either.

@jonatan-ivanov jonatan-ivanov closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
@izeye
Copy link
Contributor

izeye commented Oct 25, 2024

However, if we change this to micrometer.observations.annotations.enabled=true, the metrics started to appear.

This is unexpected, Boot 2.5 does not have this property either.

Spring Boot version doesn't match, but the property itself seems to be related to spring-projects/spring-boot#39600.

I suspect the OP provided a wrong Spring Boot version.

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

No branches or pull requests

3 participants