Capture Windows cloud-init log (C:\debuginit.txt) in telemetry - #85
Open
PrashantRaj18198 wants to merge 1 commit into
Open
Capture Windows cloud-init log (C:\debuginit.txt) in telemetry#85PrashantRaj18198 wants to merge 1 commit into
PrashantRaj18198 wants to merge 1 commit into
Conversation
Optional: filelog matches nothing when the file is absent. start_at beginning because cloud-init finishes before the collector starts. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WYUvqHtPgFTcXebxgvadxn
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
While debugging the SonarSource rate-limit incident (runners stuck ALLOCATED because the job-started prehook never fires on their Windows BYOC runners), the investigation dead-ended: the cloud-init phase writes
settings.json(includingACTIONS_RUNNER_HOOK_JOB_STARTED) and logs every step toC:\debuginit.txt— but that file is not shipped by the telemetry collector, so we cannot see whether the config write or the setup scripts (020_setup_warp_agent.vm.ps1) succeeded on customer VMs.What
filelog/cloudinitreceiver (Windows only) tailingC:\debuginit.txt, wired into thelogspipeline withlog.type: cloud_init.start_at: beginning— cloud-init completes before the collector service starts, soendwould capture nothing.Verified the template renders to valid YAML for both
windowsandlinux.🤖 Generated with Claude Code
https://claude.ai/code/session_01WYUvqHtPgFTcXebxgvadxn