Skip to content

How to configure OTLP CORS in docker container #4691

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

You must be logged in to vote

Turns out, I had the wrong OTLP import. I was importing the OTLPTraceExporter from @opentelemetry/exporter-trace-otlp-grpc not @opentelemetry/exporter-trace-otlp-http. After fixing this, the request no longer has CORS issues and instead stalls indefinitely.

Using @opentelemetry/sdk-node version 0.41.2

I think this might be something weird with Chrome, since if I right click on the request and copy it as a CURL command, the request does succeed and the traces show up as I would expect in jaeger. I'll experiment a bit more.

Replies: 2 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by dirthsj
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