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 Calling shutdown() multiple times warning in spring starter #10222

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Jan 12, 2024

While running tests I noticed the following warnings

Jan 12, 2024 9:56:04 AM io.opentelemetry.sdk.metrics.SdkMeterProvider shutdown
INFO: Multiple close calls
Jan 12, 2024 9:56:04 AM io.opentelemetry.sdk.logs.SdkLoggerProvider shutdown
INFO: Calling shutdown() multiple times.
Jan 12, 2024 9:56:04 AM io.opentelemetry.sdk.trace.SdkTracerProvider shutdown
INFO: Calling shutdown() multiple times.

these happen because all these providers are closed when OpenTelemetrySdk is close and as these providers implement AutoCloseable spring calls close for each of them once more. This pr prevents spring's AutoCloseable handling on the beans that are shut down along with the OpenTelemetrySdk.

@laurit laurit requested a review from a team January 12, 2024 08:03
@laurit laurit changed the title Fix Calling shutdown() multiple time warings in spring starter Fix Calling shutdown() multiple times warning in spring starter Jan 12, 2024
@laurit laurit force-pushed the sprin-starter-shutdown branch from db9a9fa to b383409 Compare January 17, 2024 07:19
@trask trask merged commit 61e2987 into open-telemetry:main Jan 18, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants