Skip to content
Discussion options

You must be logged in to vote

The connection error to localhost:4318 indicates that Spring Boot's OpenTelemetry auto-configuration is ignoring your management.otlp.tracing.endpoint property and falling back to the default local endpoint(1).

Use environment variables instead of Spring properties

Based on the Spring AI integration documentation and community troubleshooting, the recommended approach is to use OpenTelemetry environment variables rather than Spring Boot management properties(2)(1):

OTEL_EXPORTER_OTLP_ENDPOINT=https://cloud.langfuse.com/api/public/otel
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Basic <your_base64_credentials>

The endpoint should be the base OTLP path (/api/public/otel), not the traces-speci…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@laskaridis
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by laskaridis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment