Skip to content

Conversation

@michaldo
Copy link
Contributor

Class org.aspectj.weaver.Advice is required

Class `org.aspectj.weaver.Advice` is required

Signed-off-by: michaldo <michaldo@github.com>
@philwebb
Copy link
Member

Thanks for the suggestion, but I don't think we want to make such a strong recommendation. Setting management.observations.annotations.enabled to true and using AspectJ will auto-configure Micrometer aspects, but these annotations are also useful for users not using AspectJ. I think we'll use #48259 to update the migration guide wiki instead.

@philwebb philwebb closed this Nov 23, 2025
@philwebb philwebb added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 23, 2025
@midovlvn
Copy link

@philwebb maybe my change is too strong recommendation, but there must be mentioned that setting management.observations.annotations.enabled to true is not enough

@philwebb
Copy link
Member

Fair point, I've added a note to #48259 to also add something to the docs.

@michaldo
Copy link
Contributor Author

Maybe it is not documentation issue, but class org.aspectj.weaver.Advice should be in dependencies of spring-boot-starter-micrometer-metrics?

@wilkinsona
Copy link
Member

No, we don't think so. That's too strong an opinion as there are many way in which Micrometer Metrics is useful without AspectJ. That includes the annotations as, for example, @Timed can be used on a Spring Data Repository without requiring AspectJ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants