Open quaff opened 1 year ago
We would have to add some additional, Spring specific code in Micrometer for that to work (I'm not saying we can't do that). We have such similar code working in Spring Cloud Sleuth e.g.
it's impossible to add @Observed to super class if it from 3rd party.
Right now you either need to override that method in the cild and add @Observed
on it or ask the third-party to instrument their codebase.
Please describe the feature request. Currently ObservedAspect use
@within
pointcut, will only intercept methods declared in the class which annotated with@Observed
, methods in super classes are not get observed, it's impossible to add@Observed
to super class if it from 3rd party.Rationale Assume we have a class named
Parent
contains methodparentMethod()
from 3rd party, and we create our own child class namedChild
extendsParent
and annotated@Observed
with new methodchildMethod()
, I'm expecting all method call on child get observed, butchild.parentMethod()
is not.Additional context
minimal spring boot project observed.zip