Repository navigation
Emit workload startup message as structured JSON log - #4567
Merged
Merged
Conversation
The plain-text fmt.Println was the only non-JSON log line emitted by the proxy, breaking log collection pipelines that expect all output to be JSON-parseable. Replace with slog.Info for consistency. Fixes #4295 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4567 +/- ##
==========================================
+ Coverage 68.89% 68.90% +0.01%
==========================================
Files 505 505
Lines 52425 52425
==========================================
+ Hits 36118 36125 +7
+ Misses 13514 13509 -5
+ Partials 2793 2791 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ChrisJBurns
approved these changes
Apr 7, 2026
rdimitrov
approved these changes
Apr 7, 2026
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.
Summary
The proxy's foreground-mode startup message (
"Workload started successfully. Press Ctrl+C to stop.") was emitted viafmt.Println, making it the only non-JSON log line in proxy output. This breaks log collection pipelines (OTel Collector, Fluentd, Filebeat, Promtail) that expect all output to be JSON-parseable, causing parse errors on every pod start/restart.Replace with
slog.Infoso the message is emitted as structured JSON consistent with all other proxy log output.Fixes #4295
Type of change
Test plan
task build)fmt.Printlnlog lines remain in runner.gofmt.Println→slog.Info; no behavioral change beyond output formatGenerated with Claude Code