Repository navigation
refactor: remove unused marketo bulk upload metrics - #4537
Conversation
- Remove 13 unused marketo_bulk_upload metrics that were defined but not collected - These metrics were from old implementation and not actively used - Reduces Prometheus cardinality and improves performance - Keeps only actively used marketo metrics: fetch_token, lead_lookup, activity Fixes INT-3978
Summary by CodeRabbit
WalkthroughThe changes remove multiple Prometheus metric definitions related to "marketo_bulk_upload" from the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Suggested reviewers
Suggestion: Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.js⚙️ CodeRabbit Configuration File
Files:
🧠 Learnings (2)📓 Common learningssrc/util/prometheus.js (1)Learnt from: maheshkutty ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4537 +/- ##
===========================================
+ Coverage 91.44% 91.57% +0.12%
===========================================
Files 639 639
Lines 33774 33774
Branches 7978 7985 +7
===========================================
+ Hits 30885 30928 +43
+ Misses 2655 2616 -39
+ Partials 234 230 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
* chore: ai generated docs for airship * chore: migrate some streaming destination to new test format (#4435) * chore: migrate some streaming destination to new test format * chore: rebase to develop * fix: type * chore: review comments * chore: ing-svc workflow takes latest go tests * chore: restart deployment after creating a develop image (#4528) * chore: restart deployment after creating a develop image * fix: review comments * fix: add dependencies for kubectl * chore: review comments * chore: review comments * chore: add another job for dedicated deployment * chore: update sku mappings for product viewed event (#4467) * chore: update sku mappings for product viewed event, fix skipped tests * chore: remove skip false --------- Co-authored-by: Mahesh Kutty <[email protected]> * chore: add checkout step for deployment restart action (#4532) * chore: auto create ing-svc pr for go-tests * chore: restructure workflows * chore: workflow add permissions * chore: address security and compatibility issues * refactor: remove unused marketo bulk upload metrics (#4537) - Remove 13 unused marketo_bulk_upload metrics that were defined but not collected - These metrics were from old implementation and not actively used - Reduces Prometheus cardinality and improves performance - Keeps only actively used marketo metrics: fetch_token, lead_lookup, activity Fixes INT-3978 * chore: use latest vars for pod restart (#4538) * chore: gitworkflow version upgrades * chore: scan push revert to old version * chore: add lint rules to catch invalid or unresolved imports (#4531) * feat: onboard postscript destination (#4438) * feat: onboard postscript destination * chore: add nwhandler tests * chore: add comments, update tests, fix properties inconsistencies * chore: address comments * chore: add util tests * feat: onboard postscript destination * chore: add nwhandler tests * chore: add comments, update tests, fix properties inconsistencies * chore: address comments * chore: add util tests * chore: address comments * fix: subscriber updation logic * chore: add tests for code coverage * chore: address comments * chore: address comments, add docs * chore: remove catch --------- Co-authored-by: Mahesh Kutty <[email protected]> Co-authored-by: Mahesh Kutty <[email protected]> * chore(release): 1.106.0 --------- Co-authored-by: Vinay Teki <[email protected]> Co-authored-by: Dilip Kola <[email protected]> Co-authored-by: Manish Kumar <[email protected]> Co-authored-by: Mahesh Kutty <[email protected]> Co-authored-by: Yashasvi Bajpai <[email protected]> Co-authored-by: Mahesh Kutty <[email protected]> Co-authored-by: GitHub Actions <[email protected]>



What are the changes introduced in this PR?
Remove 13 unused Marketo bulk upload metrics that were defined but not collected in the transformer service.
What is the related Linear task?
Resolves INT-3978
Please explain the objectives of your changes below
Background
During metrics analysis, it was discovered that several Marketo bulk upload metrics were defined in the Prometheus configuration but never actually collected or used in the codebase. These metrics were likely created for one-time implementation purposes but are no longer needed.
Changes Made
Removed 13 unused Marketo bulk upload metrics from :
Any changes to existing capabilities/behaviour, mention the reason & what are the changes?
No breaking changes. These metrics were never collected, so removing their definitions has no impact on functionality. Only the actively used Marketo metrics remain:
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?
Performance Improvement: Reduces Prometheus metric cardinality by removing 13 unused metric definitions, which improves Prometheus performance and reduces memory usage.
Developer checklist
@coderabbitai review