feat: add PID/process tracking for network request attribution#132
feat: add PID/process tracking for network request attribution#132
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...] |
Smoke Test ResultsLast 2 Merged PRs:
Test Results:
Status: PASS
|
Smoke Test Results (Claude)Last 2 Merged PRs:
Test Results:
Overall Status: PARTIAL PASS (3/4 tests passed, Playwright connectivity issue)
|
Test Coverage Report
Coverage ThresholdsThe project has the following coverage thresholds configured:
Coverage report generated by `npm run test:coverage` |
|
@copilot will this be able to integrated into the awf logs feature? so that the log file will have correlating PID |
The PID tracking can be integrated with However, there's an important limitation: PID tracking only works in real-time because:
For historical log analysis, we'd need to capture PID info at request time and embed it in the log format itself (e.g., modifying Squid's log format or adding a companion log). Would you like me to add real-time PID enrichment to |
|
@copilot please add real-time PID enrichment to awf logs -f in this PR |
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Added real-time PID enrichment to Usage: awf logs -f --with-pidPretty format output: JSON format output includes new fields: {
"timestamp": 1703001234.567,
"domain": "github.com",
"pid": 12345,
"cmdline": "curl https://github.com",
"comm": "curl",
"inode": "123456"
}Note: |
src/pid-tracker.ts- PID correlation logic using /proc filesystemsrc/pid-tracker.test.ts- Unit tests for PID tracking (38 tests)containers/agent/pid-logger.sh- Shell-based alternative for container usagesrc/types.ts(PidTrackResult, EnhancedLogEntry)containers/agent/Dockerfileto include pid-logger.shawf logs -fwith--with-pidflag--with-pidoption to CLIOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.