-
Notifications
You must be signed in to change notification settings - Fork 114
fix: improve error handling in status check #2563
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: improve error handling in status check #2563
Conversation
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.
PR Summary
Enhanced error handling and observability in the actor status check implementation within packages/core/api/status/src/route/actor.rs
.
- Added structured error handling for actor creation/destruction with specific HTTP status code handling
- Added request body extraction into separate variable for better code clarity
- Improved tracing spans by including
base_path
in debug information - Enhanced error messages with
ray_id
for better request traceability - Refactored error handling without modifying core business logic
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
bail_with!( | ||
INTERNAL_STATUS_CHECK_FAILED, | ||
error = format!("{}: {} (ray_id {})", body.code, body.message, body.ray_id) | ||
); |
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.
style: Consider wrapping this error handling in a helper function since it's repeated in the actor destroy code
Deploying rivet with
|
Latest commit: |
1d70f97
|
Status: | ✅ Deploy successful! |
Preview URL: | https://846a0857.rivet.pages.dev |
Branch Preview URL: | https://06-06-fix-improve-error-hand.rivet.pages.dev |
Deploying rivet-hub with
|
Latest commit: |
1d70f97
|
Status: | ✅ Deploy successful! |
Preview URL: | https://19a14910.rivet-hub-7jb.pages.dev |
Branch Preview URL: | https://06-06-fix-improve-error-hand.rivet-hub-7jb.pages.dev |
Deploying rivet-studio with
|
Latest commit: |
1d70f97
|
Status: | ✅ Deploy successful! |
Preview URL: | https://84990049.rivet-studio.pages.dev |
Branch Preview URL: | https://06-06-fix-improve-error-hand.rivet-studio.pages.dev |
e1a8dda
to
bb905cd
Compare
36a1286
to
1d70f97
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
Changes