otel: option to preserve at metadata field in log record body#50191
Conversation
🤖 GitHub commentsJust comment with:
|
This comment has been minimized.
This comment has been minimized.
|
This pull request is now in conflicts. Could you fix it? 🙏 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
TL;DRBuildkite failed in Remediation
Investigation detailsRoot Cause
So But That mismatch causes vet/compile failure. Evidence
Verification
Note 🔒 Integrity filter blocked 2 itemsThe following items were blocked because they don't meet the GitHub integrity level.
To allow these resources, lower tools:
github:
min-integrity: approved # merged | approved | unapproved | noneWhat is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis change introduces an ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
rdner
left a comment
There was a problem hiding this comment.
LGTM
Since we've added a benchmark in the PR, we should also include results before and after in the description.
khushijain21
left a comment
There was a problem hiding this comment.
LGTM!
We would have to update kafka and logstash translation logic in elastic-agent after this is merged. I can take that up cc: @mauri870
|
@Mergifyio backport 8.19 9.3 9.4 |
✅ Backports have been createdDetails
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
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
|
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