feat: add CPU profiling pull mode - #366
arnabnandy7 wants to merge 5 commits into
Conversation
ad7b328 to
7650e52
Compare
7650e52 to
49e9ef6
Compare
49e9ef6 to
0f625b1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0f625b1. Configure here.
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
0f625b1 to
4e3c9b7
Compare
|
I think there's a lot of code here that needs to be better tested. For example the pprof encoding. I think we need some sort of proof that those encoders work properly for pprof. Also, is it possible for you to split the pull request commits by concern and commit piece by piece with the tests. |
It'll take sometime but I'll split it here @grcevski thanks for your reviews. |
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
|
@grcevski it's done, please review |

Summary
Adds an opt-in pull mode that lets collectors request CPU profiles over HTTP in pprof format.
The implementation builds on the existing configuration and profiler interfaces, with bounded recording durations, concurrent-request protection and lifecycle cleanup. Existing push behavior remains the default.
This initial version supports async-profiler CPU profiling on Linux and macOS. Dynamic labels and trace context are not included.
Includes setup documentation, an Alloy example and focused tests. Compilation and packaging passed; tests and end-to-end collector verification remain pending.
Closes #13
Test Summary: