You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
I'm trying to create an internal library that contains most of the dependencies that we need for monitoring, basic utilities and configurations that we have for our apps.
My library includes: metrics-spring, metrics-core, and spring-aop.
My app contains my library and spring-aop.
IF I include metrics-spring on a specific app everything works fine.
My configuration is very simple just doing console metrics.
IF I all the required classes are in the App itself everything works fine, but as soon as I pull anything out into a maven library the monitoring is not triggered and the breakpoint on:
@Configuration@Import({TestingConfig.class})
@ComponentScan(basePackageClasses = {
AppConfig.class
})
publicclassAppConfig {
// more code / beans here
}
The only difference between the two attempts is that the TestingConfig.class is inside my library instead of in my project and that immediate makes my setup non-functional.
Any thoughts?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to create an internal library that contains most of the dependencies that we need for monitoring, basic utilities and configurations that we have for our apps.
My library includes: metrics-spring, metrics-core, and spring-aop.
My app contains my library and spring-aop.
IF I include metrics-spring on a specific app everything works fine.
My configuration is very simple just doing console metrics.
IF I all the required classes are in the App itself everything works fine, but as soon as I pull anything out into a maven library the monitoring is not triggered and the breakpoint on:
Is never triggered in the library version of the configuration.
I hope this is too specialized of a use case, but I don't think I'm doing anything that unusual that it would fail to work.
Have I missed an obvious step in order to use metrics-spring as part of a library?
Current Configuration:
Main class config:
The only difference between the two attempts is that the TestingConfig.class is inside my library instead of in my project and that immediate makes my setup non-functional.
Any thoughts?
The text was updated successfully, but these errors were encountered: