-
Notifications
You must be signed in to change notification settings - Fork 41.8k
Polish Micrometer tracing changes #30833
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
Conversation
wilkinsona
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for the PR, @izeye. I've left a couple of comments for your consideration when you have time.
| assertThat(context).hasBean("customTracer"); | ||
| assertThat(context).hasSingleBean(Tracer.class); | ||
| }); | ||
| this.contextRunner.withUserConfiguration(CustomConfiguration.class).run((context) -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need OpenTelemetryConfiguration here so that @ConditionalOnBean(OpenTelemetry.class) on OpenTelemetryConfigurations.TracerConfiguration.otelTracer(OpenTelemetry) is satisfied and the test is then checking the @ConditionalOnMissingBean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wilkinsona Oops, I missed it. I reverted this change.
| } | ||
|
|
||
| @Test | ||
| void shouldNotSupplyRestTemplateSenderIfNoBuilderIsAvailable() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to double-check my understanding, I assume you have removed this test as it duplicates shouldSupplyBeans()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wilkinsona Yes, it seems to be a duplicate of shouldSupplyBeans().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This PR polishes Micrometer tracing changes a bit.