-
Notifications
You must be signed in to change notification settings - Fork 308
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
chore: disable TraceLayer on_failure log #4315
Conversation
Warning Rate limit exceeded@paomian has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 16 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. WalkthroughThe updates primarily enhance error handling and HTTP tracing configuration within the server code. A new function Changes
Poem
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/servers/src/error.rs (2 hunks)
- src/servers/src/http.rs (1 hunks)
Additional comments not posted (3)
src/servers/src/error.rs (2)
748-751
: LGTM!The function
log_error_and_return_internal_server_error_http_status
correctly logs the error and returns the appropriate HTTP status code.
Line range hint
752-775
: LGTM!The
IntoResponse
implementation forError
correctly delegates error handling to the new logging functions.src/servers/src/http.rs (1)
700-702
: LGTM!The modification to the
TraceLayer
configuration to disable tracing on failure aligns with the PR objective to reduce unnecessary log noise.
greptimedb/src/servers/src/error.rs Line 759 in 59afa70
|
380a55d
to
d04b71d
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/servers/src/error.rs (2 hunks)
- src/servers/src/http.rs (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- src/servers/src/error.rs
- src/servers/src/http.rs
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4315 +/- ##
==========================================
- Coverage 85.13% 84.87% -0.27%
==========================================
Files 1060 1060
Lines 187669 187671 +2
==========================================
- Hits 159777 159280 -497
- Misses 27892 28391 +499 |
I'm not sure if it is the proper level. But we might set |
After my testing, adding
|
8527322
to
9e4dfb0
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/servers/src/error.rs (2 hunks)
- src/servers/src/http.rs (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- src/servers/src/error.rs
- src/servers/src/http.rs
9e4dfb0
to
e8e5493
Compare
e8e5493
to
877f459
Compare
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Please explain IN DETAIL what the changes are in this PR and why they are needed:
Checklist
Summary by CodeRabbit
New Features
Refactor