Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[headerssetter] Remove "Limitations" section from README. (#27465)
The docs for the `headers_setter` extension state that the `from_context` config option does not work if the batch processor is used. I believe this comment is out of date, because it seems that the [PR](open-telemetry/opentelemetry-collector#7578) linked to the [issue](open-telemetry/opentelemetry-collector#4544) has been merged. Note that I haven't tested that this actually works with the header setter extension. Please let me know if you think testing is necessary. Co-authored-by: Juraci Paixão Kröhling <juraci@kroehling.de>
- Loading branch information
d50e094
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ptodev perhaps I'm missing something - but I've used the latest image and couldn't use
from_context
with a pipeline containing a batch process.Removing the batch process from pipeline resolved it, so I believe the limitation is still there (would have saved me a few good hours knowing that it exists)
here are the headers sent and received with batch process enabled (empty X-Scope-Orgid header value):
Sent:
Received:
headers_setter config section:
As I've said, removing the batch process resolves it.
d50e094
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, and apologies for the extremely late reply! I think you just need a
metadata_keys
in your batch processor. I submitted a PR to make the docs more clear.