[9.3](backport #50191) otel: option to preserve at metadata field in log record body#50242
[9.3](backport #50191) otel: option to preserve at metadata field in log record body#50242mergify[bot] wants to merge 4 commits into
Conversation
* otel: add tests for kafkaexporter (cherry picked from commit 2e949e6) # Conflicts: # libbeat/beat/info.go # x-pack/filebeat/fbreceiver/config_test.go # x-pack/filebeat/tests/integration/otel_kafka_test.go
|
Cherry-pick of 2e949e6 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
🤖 GitHub commentsJust comment with:
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
TL;DR
Remediation
Investigation detailsRoot CauseThe workflow failure is a Evidence
Validation
Follow-up
What is this? | From workflow: PR Actions Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
/test |
|
Blocked on the VM image fixes from #50254. |
|
/test |
|
@pierrehilbert This is stuck on the known issue with VM images. Can you force-merge this PR? Thanks. |
|
Is it really needed in 9.3? |
|
This pull request has not been merged yet. Could you please review and merge it @mauri870? 🙏 |
Fair point, 8.19 backport was closed as well. Thanks for pointing it out, closing this. |
Proposed commit message
The at metadata fields were removed in #42469 because it was deeemed unnecessary. But Logstash and Kafka require these fields for document compatibility with the standalone libbeat outputs.
We cannot include these fields unconditionally because the most commonly used exporters (Elasticsearch and OTLP for agentless) don't use them, which would incur additional allocations and CPU overhead. To address this, we add a configuration option to the Beats receiver to enable this behavior when needed. This can be used as a configuration knob by the EDOT runtime.
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.How to test this PR locally
Related issues
This is an automatic backport of pull request #50191 done by [Mergify](https://mergify.com).