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

Spring starter - Add api opentelemetry-sdk-extension-autoconfigure-spi #6254

Conversation

breedx-splk
Copy link
Contributor

@breedx-splk breedx-splk commented Jul 1, 2022

A colleague was encountering this error when attempting to use opentelemetry-spring-starter.

I'm not 100% confident in this, but it looks like the starter includes the spring:spring-boot-autoconfigure instrumentation, which includes the OtelResourceAutoConfiguration class from the stack trace. That class directly references ResourceProvider, which is brought in from opentelemetry-sdk-extension-autoconfigure-spi but via compileOnly, so the user doesn't have it at runtime.

The colleague was able to work around the error by including opentelemetry-sdk-extension-autoconfigure-spi in their dependency list, but we don't include that in the docs and it seemed like it made sense to include it in the starter bundle.

If adding the dep here isn't the right approach, I'm happy to pivot, just let me know.

@breedx-splk breedx-splk requested a review from a team as a code owner July 1, 2022 16:36
@mateuszrzeszutek mateuszrzeszutek merged commit f3f2e61 into open-telemetry:main Jul 4, 2022
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.

None yet

3 participants