[9.3] (backport #13436) Replace deprecated LoggingWithTypedOutputs#13543
Merged
michel-laterman merged 2 commits into9.3from Apr 17, 2026
Merged
[9.3] (backport #13436) Replace deprecated LoggingWithTypedOutputs#13543michel-laterman merged 2 commits into9.3from
michel-laterman merged 2 commits into9.3from
Conversation
4 tasks
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Contributor
Author
|
This pull request has not been merged yet. Could you please review and merge it @orestisfl? 🙏 |
michel-laterman
approved these changes
Apr 16, 2026
Contributor
TL;DR
Remediation
Investigation detailsRoot CauseThe permissions literal is currently inferred as Evidence
Validation
Follow-up
What is this? | From workflow: PR Actions Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Contributor
💚 Build Succeeded
History
cc @orestisfl |
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?
LoggingWithTypedOutputs is deprecated in favor of the Local variant which returns a localized logger instance. Use the returned logger directly via Named() instead of re-reading from global state with logp.NewLogger().
Why is it important?
Clean up of deprecated endpoints. Elastic Agent is the only caller in Elastic: https://github.com/search?q=org%3Aelastic%20LoggingWithTypedOutputs&type=code
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added an entry in./changelog/fragmentsusing the changelog toolI have added an integration test or an E2E testDisruptive User Impact
There shouldn't be any. I've tested locally and both the elastic-agent build from main and with my change seem to produce the same format of logs.
How to test this PR locally
and read the *.ndjson logs. Compare with main.
Related issues
This is an automatic backport of pull request Replace deprecated LoggingWithTypedOutputs #13436 done by Mergify.