Skip to content

Failed to export spans. Agent tries to connect to localhost:4318 #9861

Answered by laurit
yefisher asked this question in Q&A

You must be logged in to vote

By default agent does not enable exporting logs (this will change in the 2.0 version of the agent) you have to manually enable it by setting OTEL_LOGS_EXPORTER=otlp.
Having spans working is a bit surprising considering the error message you posted says Failed to export spans. Unless you provide a minimal application that reproduces the issue it will be hard to tell what causes this.

Replies: 1 comment 6 replies

You must be logged in to vote
6 replies
@yefisher

@yefisher

@laurit

Answer selected by yefisher
@yefisher

@laurit

@yefisher

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