-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix stats prefix for trading rewards API #1184
Conversation
WalkthroughThe recent updates primarily focus on renaming controller names to more accurately reflect their functionality and enhancing the tracking of response status codes. Two controllers have had their names updated to better describe their roles in handling historical block trading rewards and aggregations. Additionally, the system's ability to track response status codes has been improved by adding a more generalized tracking mechanism alongside the existing specific status code tracking. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (3)
- indexer/services/comlink/src/controllers/api/v4/historical-block-trading-rewards-controller.ts (1 hunks)
- indexer/services/comlink/src/controllers/api/v4/historical-trading-reward-aggregations-controller.ts (1 hunks)
- indexer/services/comlink/src/request-helpers/export-response-code-stats.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- indexer/services/comlink/src/controllers/api/v4/historical-trading-reward-aggregations-controller.ts
Additional comments: 2
indexer/services/comlink/src/request-helpers/export-response-code-stats.ts (1)
- 18-19: The addition of a new
stats.increment
call without specifyingresponse.statusCode
in the key is a good enhancement for broadening the scope of response status code tracking. However, it's important to monitor the performance and the volume of data generated by this new metric to ensure it does not negatively impact the system.indexer/services/comlink/src/controllers/api/v4/historical-block-trading-rewards-controller.ts (1)
- 27-27: Updating the
controllerName
variable to'historical-block-trading-rewards-controller'
improves clarity and accuracy. Ensure that all references to this controller across the codebase have been updated to reflect the new name.
Changelist
Fix stats prefix for trading rewards API
Test Plan
for dashboarding
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.