feat(rpc): implement health check service and error handling

- Added `RpcError` enum for comprehensive error handling in RPC operations.
- Introduced `HealthReporter` and `HealthService` for managing service health statuses.
- Implemented health check and watch functionality in the health service.
- Created integration tests for health check service, covering various scenarios.
- Added unit tests for client options validation and stream functionality.
- Established logging infrastructure for terminal and registry components.
- Implemented logging lifecycle management and conflict resolution in tests.
This commit is contained in:
2026-10-09 15:57:35 +08:00
parent 7f331565c7
commit bbb67a68ab
65 changed files with 3313 additions and 695 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
[workspace]
members = ["dispatcher", "registry", "terminal", "proto", "aggregate-router"]
members = ["dispatcher", "registry", "terminal", "proto", "aggregate-router", "log"]
resolver = "3"
[workspace.package]
@@ -8,6 +8,7 @@ edition = "2024"
authors = ["lain <[email protected]>"]
[workspace.dependencies]
flysim-log = { path = "log" }
proto = { path = "proto" }
connectrpc = { version = "^0.9", features = ["client", "server", "axum"] }
buffa = "^0.9"
@@ -31,3 +32,7 @@ tokio = { version = "^1", features = [
] }
log = "^0.4"
env_logger = "^0.11"
tracing = "^0.1"
tracing-log = "^0.2"
tracing-subscriber = { version = "^0.3", default-features = false, features = ["fmt", "ansi", "registry", "std", "tracing-log"] }
tracing-appender = "^0.2"