process-detection
Installation
SKILL.md
Running Process Detection
This skill covers how dtwiz discovers, identifies, and correlates running OS processes to project directories. Process detection is the foundation for auto-instrumentation — it answers "what's running and where does it live?".
We want to reliably map instrumented services to proper ports.
Architecture Overview
pkg/installer/
otel_runtime_scan.go # Shared types + project-process correlation
otel_runtime_scan_unix.go # Unix: ps, lsof
otel_runtime_scan_windows.go # Windows: Get-CimInstance Win32_Process, Get-NetTCPConnection
otel_process.go # ManagedProcess lifecycle (launch, port poll, exit tracking)
otel_process_windows.go # Windows child-adoption (leaf PID discovery, watchPID)
otel_process_other.go # Unix no-op stub for adoptExeclChildren