Skip to content

Using Otel 1.26.0, getting Failed to connect to localhost/127.0.0.1:4317 error #8708

Answered by trask
itsmaneesh asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Why do I see the error in case of Opentelemetry-javaagent:1.26.0 and not in with Opentelemetry-javaagent:1.10.0 ? Was this due to the env var OTEL_METRICS_EXPORTER defaulted to none earlier in version 1.10.0 of javaagent and now its defaulted otlp (change introduced in 1.13.0)? If so, what was the rationale to do so?

yes

If so, what was the rationale to do so?

metrics were enabled by default once they became stable

  1. If my metrics export is prometheus then can I configure the below env var to resolve this issue?

check out https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#prometheus-exporter

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by itsmaneesh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants