-
Notifications
You must be signed in to change notification settings - Fork 19
publish metrics only when actually publishing #227
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
publish metrics only when actually publishing #227
Conversation
Warning Rate limit exceeded@iuwqyir has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 28 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
✨ Finishing Touches
🪧 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
CodeRabbit Configuration File (
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
70ecf2e
to
edff81c
Compare
055b412
to
66f3a66
Compare
edff81c
to
e5e4330
Compare
4fafda1
to
c3ca0b9
Compare
e39985a
to
f406ec4
Compare
30d792b
to
55d5c67
Compare
f406ec4
to
514b78e
Compare
55d5c67
to
103b15d
Compare
514b78e
to
8407225
Compare
103b15d
to
e238656
Compare
8407225
to
6505495
Compare
95bc3d5
to
cc624f5
Compare
6505495
to
f334927
Compare
cc624f5
to
abb607d
Compare
f334927
to
419d4ec
Compare
419d4ec
to
d79c9a1
Compare
d79c9a1
to
34cef4e
Compare
TL;DR
Moved metrics collection from the Committer to the Publisher for more accurate timing and consolidated metrics reporting.
What changed?
How to test?
Why make this change?
The previous implementation had inaccurate timing measurements since the metrics were being recorded in the Committer's goroutine rather than in the Publisher itself. This change ensures that the publish_duration metric accurately reflects the actual time spent publishing data. Additionally, consolidating all metrics reporting in one place makes the code more maintainable and ensures consistent metrics collection.