Repository navigation
fix(deploy): write receiver and tunnel logs as JSON - #101
Merged
Merged
Conversation
Generated-by: LLM effort=high;harness=codex:0.166.0;model=openai:gpt-6.2-sol;session=sha-256-64:68cbe944a540c74d;surface=exec
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.
Why
The host log collector reads Docker's
json-filelogs. The receiver and tunnel currently use Docker'slocaldriver, which leaves their logs unavailable to the collector.Behavior change
Both services use
json-fileand include the Compose project and service labels in their log records. Docker rotates the logs at 10 MB and keeps up to three files per container.Decisions
Each service declares its logging settings directly, following the Compose file's existing style.
Deviations from the task
The change follows the requested scope.
Needs human judgment
Confirm that the host collector ingests and labels logs from both services after deployment.
Risk
The new settings take effect when Docker recreates the containers.
Verification
The regression test renders the Compose configuration and checks the log driver and options for both services.
bazelisk test //...passed on macOS with 33 tests passing and one skipped.bazelisk test //:golangci_lint_testpassed. The focused logging test also passed with Docker Compose available. PR size reported 55 added code lines.Human steering
The task specified the log driver, Compose labels, rotation limits, and a separate test function for compatibility with the parallel deployment work.
Assisted-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli