fix micrometer bridge auto configuration annotation#13083
fix micrometer bridge auto configuration annotation#13083trask merged 16 commits intoopen-telemetry:mainfrom
Conversation
trask
left a comment
There was a problem hiding this comment.
do you think a test could be added for this?
yes - I even found the test that I broke with this PR. |
a888249 to
b9a2ab1
Compare
0f347b6 to
84abdcc
Compare
| testing { | ||
| suites { | ||
| val testPrometheus by registering(JvmTestSuite::class) { | ||
| dependencies { | ||
| runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3") | ||
| } | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
since there are no source for this suite it won't run any tests as far as I can tell
There was a problem hiding this comment.
OK - I had to test this by adding id("com.adarshr.test-logger") version "4.0.0" to see that noting gets executed...
used the setup for stable semconv now
|
Exception |
|
I can't reproduce the error locally with @laurit can you help? |
For met it repros fine. I think the problem is in |
| } | ||
|
|
||
| @Bean | ||
| static BeanPostProcessor postProcessCompositeMeterRegistry() { |
There was a problem hiding this comment.
do we have a convention of making these methods public?
There was a problem hiding this comment.
the other bean post processor is also static:
thanks - I'll try with |
apparently that worked @laurit I'm hoping that this also makes sense 😄 |
…javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/actuator/v2_0/OpenTelemetryMeterRegistryAutoConfiguration.java Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Fixes #12719 - hopefully