-
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
opentelemetry-collector processors/routing use custom http header can not route to right exporters #30393
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @burning954320420, thanks for filing this issue! Usually when all of your data is going to the default exporter it means that your incoming data is formatted differently than expected when being compared to the Can you share a few example log messages? Preferably using the Here's a sample config that would display what I'm requesting:
|
@crobert-1 Thank you for your help. I config exporters.debug, and the opentelemetry-collector log like:
But I feel that it may not be possible to see HTTP header information in the exporters. And I capture the packet in opentelemetry-collector http 4318 port, the packet like that: |
It looks like you need to add Here's what your receiver configuration should look like:
|
@crobert-1 Thank you for your help. I have resolved the issue by adding the include_metadata configuration. Thank you once again for your assistance. |
Component(s)
processor/routing
Describe the issue you're reporting
I want fluent-bit collect logs and push to opentelemetry-collector, then the opentelemetry-collector can get fluent-bit output custom http header, finally the opentelemetry-conllector based on fluent-bit output http header to different exporter. So I try to use processors/routing.
But the logs always output to default exporter, never output to desired exporter.
My fluentbit config is
My opentelemetry-collector config is
I expect fluentbit input the /tmp/test.log and opentelemetry-conllector written to /data/custom.log, but it written to /data/default.log.
I used tcpdump command to get opentelemetry-conllector packet, and X-Custom-Logs-Header header really in the opentelemetry-conllector http port when fluentbit post to opentelemetry-conllector.
The text was updated successfully, but these errors were encountered: