Repository navigation
Include input id in otel receiver names if present - #17148
Merged
swiatekm merged 2 commits intoOct 14, 2026
Merged
Conversation
Contributor
|
This pull request does not have a backport label. Could you fix it @swiatekm? 🙏
|
💛 Build succeeded, but was flaky
Failed CI Stepscc @swiatekm |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
blakerouse
approved these changes
Oct 14, 2026
blakerouse
left a comment
Contributor
There was a problem hiding this comment.
Looks good, straightforward change, well tested!
Contributor
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
swiatekm
deleted the
swiatekm/otel-runtime-merges-streams-with-the-same-id-fro
branch
October 14, 2026 15:38
5 tasks done
swiatekm
added a commit
that referenced
this pull request
Oct 14, 2026
…esent (#17210) * Include input ID in receiver name if present (#17148) (cherry picked from commit 5486629) # Conflicts: # internal/pkg/otel/translate/otelconfig_nofips_test.go # internal/pkg/otel/translate/otelconfig_test.go * Resolve backport test conflicts Co-authored-by: swiatekm <93588780+swiatekm@users.noreply.github.com> --------- Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: swiatekm <93588780+swiatekm@users.noreply.github.com>
1 of 3 tasks
This was referenced Oct 28, 2026
vishaangelova
added a commit
that referenced
this pull request
Nov 2, 2026
Add the "Keep streams with identical IDs from different inputs separate in the OTel runtime" fix (#17148). It was missing because its changelog kind is "unknown", so the generator didn't place it in any section.
vishaangelova
added a commit
that referenced
this pull request
Nov 2, 2026
Add the "Keep streams with identical IDs from different inputs separate in the OTel runtime" fix (#17148). It was missing because its changelog kind is "unknown", so the generator didn't place it in any section.
3 tasks done
ebeahan
added a commit
that referenced
this pull request
Nov 2, 2026
* add the 9.5.6 Elastic Agent release notes * remove duplicate PR entries * fixes Updated release notes for version 9.5.6, including new features, enhancements, and fixes. * Review fixes * Add missing entry Add the "Keep streams with identical IDs from different inputs separate in the OTel runtime" fix (#17148). It was missing because its changelog kind is "unknown", so the generator didn't place it in any section. --------- Co-authored-by: ebeahan <7226265+ebeahan@users.noreply.github.com> Co-authored-by: ebeahan <eric.beahan@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> Co-authored-by: Visha Angelova <visha.angelova@elastic.co>
ebeahan
added a commit
that referenced
this pull request
Nov 2, 2026
* add the 9.5.6 Elastic Agent release notes * remove duplicate PR entries * fixes Updated release notes for version 9.5.6, including new features, enhancements, and fixes. * Review fixes * Add missing entry Add the "Keep streams with identical IDs from different inputs separate in the OTel runtime" fix (#17148). It was missing because its changelog kind is "unknown", so the generator didn't place it in any section. --------- (cherry picked from commit fc35af5) Co-authored-by: elastic-vault-github-plugin-prod[bot] <150874479+elastic-vault-github-plugin-prod[bot]@users.noreply.github.com> Co-authored-by: ebeahan <7226265+ebeahan@users.noreply.github.com> Co-authored-by: ebeahan <eric.beahan@elastic.co> Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co> Co-authored-by: Visha Angelova <visha.angelova@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Includes the input ID in the ID of otel receivers of its streams. This fixes a bug where streams with the same ID, present in different inputs of the same type, would be collapsed into a single receiver.
Why is it important?
A component contains all the inputs of a given type writing to an output. Within it, each stream gets its own receiver, identified by a combination of component ID and stream ID. However, it's possible to have streams with identical IDs in different inputs of the same type. Those are collapsed into the same receiver, which is obviously wrong. This change fixes that bug.
Here's an example of an affected configuration:
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files./changelog/fragmentsusing the changelog tool[ ] I have added an integration test or an E2E testHow to test this PR locally
Build agent and try out the configuration posted above. It will now produce a receiver per stream, as it should.
Related issues