Repository navigation
chore(pyroscope): use forked pyroscope middleware with latest updates - #4252
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the Summary by CodeRabbit
Summary by CodeRabbit
WalkthroughThis pull request removes direct CPU and heap profiling functionality that was spread across controllers, services, routes, and middleware. The profiling endpoints and helper methods ( Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant A as Koa App
participant M as Profiling Middleware
participant R as Route Handler
C->>A: HTTP Request
A->>M: Invoke Profiling Middleware (addProfilingMiddleware)
M->>A: Calls next() to pass request along
A->>R: Dispatch to Route Handler
R-->>A: Response
A-->>C: Return HTTP Response
Suggestions
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Allure Test reports for this run are available at:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4252 +/- ##
===========================================
+ Coverage 91.17% 91.21% +0.04%
===========================================
Files 632 632
Lines 33079 33057 -22
Branches 7831 7832 +1
===========================================
- Hits 30160 30154 -6
- Misses 2674 2688 +14
+ Partials 245 215 -30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|



What are the changes introduced in this PR?
Older pyroscope nodejs versions are vulnerability. The latest updates have breaking changes which required different way to instrument pyroscope in transformer.
To achieve this, we've contributed to the public @pyroscope/nodejs repo and published a version of it in npm under the library.
What is the related Linear task?
Resolves INT-3493
Please explain the objectives of your changes below
Here is the reference to the forked pyroscope/nodejs repo with koa middleware supported implemented.
https://github.com/vinayteki95/pyroscope-nodejs
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.