[8.19] (backport #11186) Allow setting the otel runtime per input type#11508
Merged
[8.19] (backport #11186) Allow setting the otel runtime per input type#11508
Conversation
Contributor
Author
|
Cherry-pick of f5ed777 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 |
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Contributor
Author
|
This pull request is now in conflicts. Could you fix it? 🙏 |
d2d8215 to
3fa7168
Compare
* Allow setting runtime per input type # Conflicts: # internal/pkg/agent/application/coordinator/coordinator.go # internal/pkg/agent/install/componentvalidation/validation.go # internal/pkg/agent/install/uninstall.go # pkg/component/component.go # pkg/component/component_test.go * Fix linter warnings * Add agent.internal section to the reference config * Fix config reference * Apply suggestion from @cmacknz Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co> * Fix reference config file --------- Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co> (cherry picked from commit f5ed777)
3fa7168 to
23efabf
Compare
swiatekm
approved these changes
Dec 2, 2025
Contributor
💔 Build Failed
Failed CI Steps
History
cc @swiatekm |
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?
Allows the runtime in which an input runs to be set per input type in a new
agent.internal.runtimeconfiguration section. There's three levels at which the runtime can be set, in order of increasing priority:Here's how the configuration might look like with all options set:
The implementation is almost completely confined to the component package.
Why is it important?
We intend to progressively make the otel runtime the default in future major releases, but we also want to let users switch back to the process runtime if they encounter bugs. These settings are intended to be transient - eventually, they'll be removed,.
Checklist
./changelog/fragmentsusing the changelog toolHow to test this PR locally
Build agent locally and try playing around with the settings in the following config file:
Related issues
This is an automatic backport of pull request #11186 done by [Mergify](https://mergify.com).