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

Error: "Failed to export spans" when running with default config #5655

Closed
dimas-b opened this issue Dec 8, 2022 · 2 comments
Closed

Error: "Failed to export spans" when running with default config #5655

dimas-b opened this issue Dec 8, 2022 · 2 comments
Labels
java Pull requests that update Java code

Comments

@dimas-b
Copy link
Member

dimas-b commented Dec 8, 2022

  • Run local Nessie (e.g. Quarkus dev mode).
  • Make some requests
  • Quarkus logs this error:
2022-12-07 19:41:06,633 SEVERE [io.ope.exp.int.grp.OkHttpGrpcExporter] (OkHttp http://localhost:4317/...) Failed to export spans. 
The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4317
@dimas-b dimas-b added the java Pull requests that update Java code label Dec 8, 2022
@snazy
Copy link
Member

snazy commented Feb 25, 2023

Haven't seen this one anymore, closing

@snazy snazy closed this as completed Feb 25, 2023
@adutra
Copy link
Contributor

adutra commented Feb 27, 2023

Just for future reference: this error message is still visible and is related to the quarkus.opentelemetry.tracer.exporter.otlp.endpoint setting.

This setting is mandatory for OpenTelemetry to work properly and should always be explicitly set in production mode.

In development mode (quarkus:dev), however, thanks to the specific behavior in OtlpRecorder, this setting is automatically set to http://localhost:4317 if not present.

Because of that, the LateBoundBatchSpanProcessor bean gets configured, and tries to contact the OTLP collector at http://localhost:4317 but fails since no collector was deployed – hence the error message.

In #6153 I added a few troubleshooting notes about this to site/docs/try/configuration.md, see 1e491aa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code
Projects
None yet
Development

No branches or pull requests

3 participants