Skip to content
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

fix MapConverter bean condition #10346

Merged
merged 5 commits into from
Feb 1, 2024

Conversation

zeitlinger
Copy link
Member

Fixes #10344

@zeitlinger zeitlinger requested a review from a team January 29, 2024 19:16
@zeitlinger zeitlinger self-assigned this Jan 29, 2024
properties = {
"otel.exporter.otlp.enabled=false",
"otel.metric.export.interval=100",
"otel.exporter.otlp.headers=a=1,b=2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about moving this test in the OpenTelemetryAutoConfigurationTest class? In this way, all the property configurations related to the OpenTelemetryAutoConfiguration will be tested in the same class.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do that - then found out that context runner works differently - bean conditions are only evaluated with a @SpringBootTest

@trask
Copy link
Member

trask commented Jan 30, 2024

@zeitlinger looks like there's a test failure

@zeitlinger
Copy link
Member Author

@zeitlinger looks like there's a test failure

should be fixed now

@trask trask merged commit bb8e301 into open-telemetry:main Feb 1, 2024
47 checks passed
@zeitlinger zeitlinger deleted the map-converter-fix branch February 1, 2024 09:27
steverao pushed a commit to steverao/opentelemetry-java-instrumentation that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

MapConverter does not get initialized if some exporters are turned off
4 participants