-
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
from_context values isn't passed in the headers_setter if pipeline contains batch process #29271
Comments
Pinging code owners for extension/headerssetter: @jpkrohling. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @romanvogman, can you share the full configuration of the collector that you're using? I want to confirm that the |
@romanvogman, can you confirm you used |
Hey, Most of the configuration came as is from otel-collector helm chart Here's how it looks like when we apply it:
Haven't found reference to |
Without that, the batch processor won't take the context into consideration, which explains what you are seeing. Please, take a look at the documentation for the batch processor, linked from @crobert-1's earlier comment: |
Thanks for your feedback @jpkrohling, but in our case batch processor isn't needed (at the moment), it just wasn't working correctly with the default configuration from helm chart which has wish is was easier to find though, would have saved me a good few hours debugging it :) |
Sorry about that -- where would be the place you'd have looked at to debug this? |
Component(s)
No response
What happened?
Description
Using the latest image 0.88.0, I've noticed that the limitation that was perviously mentioned here was still happening - otel collector with batch process doesn't retrieve the header value passed in
from_context
section. Removing batch process from the pipeline resolves it.Steps to Reproduce
Add batch process to pipelines and a headers setter section with
from_conext
Example:
Headers sent:
Headers received:
Removing batch process from the pipeline fixed this issue and X-Scope-Orgid header contains the expected value
Collector version
0.88.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: