-
Notifications
You must be signed in to change notification settings - Fork 879
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
Exporter for Metrics Defaults to gRPC Even When Explicitly Set #13024
Comments
Found additional information on this issue! I was able to mitigate the issue by instead using environment variables rather than the spring application.yml. I don't count this as a non-issue though since the documentation clearly states that I should be able to use either. I found that the spring boot starter implementation was not reading ANY of my configurations in the application.yml! |
transferring to opentelemetry-java-instrumentation repo where the opentelemetry-spring-boot-starter lives |
@jeffNedley a minimal sample application that reproduces the issue could help. |
What would be the other one though? The only dependencies installed is the spring starter. I mean I followed the documentation exactly as is and still my configurations in my application.yml do not work. |
I guess it could happen when |
Describe the bug
Using the Spring Boot Zero-Code Implementation and following the documentation closely, I cannot seem to get the implementation to work without seeing this error message.
From what it seems, even after setting the endpoint and protocol values for what my team needs (http/protobuf), we always receive the error saying, "Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317". This is incorrect for two reasons. One, because I have set the endpoint using the application.yml and two, because I have set the protocol using the application.yml.
Here is our config (application.yml) below:
Here is our dependency config (pom.xml):
Error that comes up constantly:
Steps to reproduce
Follow OpenTelemetry documentation for Zero-Code Implementation under the Spring Boot Starter section.
What did you expect to see?
Integration and all telemetry data to show up in my Collector with no errors in the logs
What did you see instead?
All telemetry except a log of an error was shown repeatedly
What version and what artifacts are you using?
Artifacts: opentelemetry-instrumentation-bom, opentelemetry-spring-boot-starter
Version: 2.11.0
How did you reference these artifacts?
pom.xml Maven
Environment
Compiler: openjdk 21.0.4 2024-07-16 LTS
OS: RedHat Linux
Runtime: Corretto-21.0.4.7.1 (build 21.0.4+7-LTS)
OS RedHat Linux
The text was updated successfully, but these errors were encountered: