mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
chore: add server-side error logging to improve observability in gRPC (#6846)
chore: print tonic code Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
@@ -290,6 +290,8 @@ macro_rules! define_into_tonic_status {
|
||||
use tonic::metadata::MetadataMap;
|
||||
use $crate::GREPTIME_DB_HEADER_ERROR_CODE;
|
||||
|
||||
common_telemetry::error!(err; "Failed to handle request");
|
||||
|
||||
let mut headers = HeaderMap::<HeaderValue>::with_capacity(2);
|
||||
|
||||
// If either of the status_code or error msg cannot convert to valid HTTP header value
|
||||
|
||||
Reference in New Issue
Block a user