Repository navigation
chore: enable collection of cpu data - #4267
Conversation
Summary by CodeRabbit
Summary by CodeRabbit
WalkthroughThe change updates the Pyroscope profiler configuration within Changes
Possibly related PRs
Suggested reviewers
Suggestion: 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.js`: Focus on ESLint errors (max 3) and warnings (max 5).
🧬 Code Graph Analysis (1)src/middleware.test.js (1)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4267 +/- ##
===========================================
+ 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:
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/middleware.js (1)
8-10: Make CPU collection configurable Consider guarding this flag behind an environment variable (e.g.,process.env.PYROSCOPE_CPU_PROFILE_ENABLED) or a config option so teams can opt in or out of CPU profiling to minimize runtime overhead when it’s not needed.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/middleware.js(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.js`: Focus on ESLint errors (max 3) and warnings (max 5).
**/*.js: Focus on ESLint errors (max 3) and warnings (max 5).
src/middleware.js
⏰ Context from checks skipped due to timeout of 90000ms (8)
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Code Coverage
- GitHub Check: test_and_publish
- GitHub Check: UT Tests
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
src/middleware.js (2)
8-10: Well-structured addition The newwall.collectCpuTime: trueflag correctly aligns with the PR’s goal of capturing CPU profiling data alongside wall time. The syntax is clean and integrates seamlessly into the existing config.
8-10: Validate Pyroscope configuration Please verify against the official Pyroscope Node.js documentation that settingcollectCpuTimeunderwallis sufficient to enable CPU profiling. There may be a separatecpusection or additionalprofileskeys required to capture CPU metrics.
|
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?
Enable
profile_cpu-cpufor pyroscope along withprofile_cpu-walldata for cpu specific profile information.What is the related Linear task?
Resolves INT-3493
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
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.