Skip to content

Question about setting the endpoint url #3726

Answered by dubonzi
dubonzi asked this question in Q&A
Discussion options

You must be logged in to vote

Your example worked but it broke when I passed the endpoint as an environment variable OTEL_EXPORTER_OTLP_ENDPOINT=127.0.0.1:4318, can you try it like that? Apparently the variable is taking precedence over WithEndpoint in this case.

Looking at the code, the env var is parsed as an URL while in WithEndpoint the value is assigned directly as a string without the parse.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
4 replies
@dmathieu
Comment options

@dubonzi
Comment options

@dmathieu
Comment options

@dubonzi
Comment options

Answer selected by dubonzi
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