feat: add x-hs-latency header for application overhead measurement (#2486)

This commit is contained in:
BallaNitesh
2023-10-10 14:51:47 +05:30
committed by GitHub
parent 13aaf96db0
commit cf0db35923
16 changed files with 112 additions and 15 deletions

View File

@ -85,7 +85,7 @@ where
let response = S::try_from(response);
match response {
Ok(response) => match serde_json::to_string(&response) {
Ok(res) => api::http_response_json_with_headers(res, headers),
Ok(res) => api::http_response_json_with_headers(res, headers, None),
Err(_) => api::http_response_err(
r#"{
"error": {