-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Zipkin Exporter does not include the headers from client settings in request #30679
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @EOjeah, the headers defined in the config are actually set in the call stack of Here's the call stack showing how we get to the method that's setting the headers set in the config:
Is there a specific reason besides what you've shared that you made it seem like headers weren't being sent properly with the exporter requests? |
@crobert-1 thanks for looking through. Actually I came across it when configuring the collector to send to zipkin server behind nginx. It seems the I do think the headers are set but not sure it includes the |
Thanks for including more information! The method I shared before is adding the headers specified in the config. Does that make sense, did I miss something? |
ah that makes sense thanks for the info! I think I may have missed something on my end and will check again next week |
Does this work for you @EOjeah? There was an issue discussed yesterday in the Collector SIG meeting that makes specifying the |
@astencel-sumo yeah this will probably solve the issue I had as well. The Host header was expecting something different from the header extracted from the endpoint url (Go's net/http library). I made changes to the proxy I used so the Host header required matched what was in the endpoint. |
Component(s)
exporter/zipkin
What happened?
Description
According to HTTP Configuration Settings Exporters can leverage client configuration.
Zipkin Exporter specifies you can leverage these advanced settings from README.md, however it does not properly update the
headers
when you put that in the configuration.Steps to Reproduce
Actual Result
Print your
req
struct from zipkin.go with fmt.Println(req)Expected Result
Collector version
v0.92.0
Environment information
Environment
OS: Ubuntu 22.04.3 LTS
Compiler: go1.21.5 linux/amd64
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: