mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(logging): add a logging middleware to log all api requests (#3437)
This commit is contained in:
@ -37,7 +37,7 @@ impl ExecuteQuery for kv::DBOperation {
|
||||
];
|
||||
|
||||
let (result, execution_time) =
|
||||
common_utils::date_time::time_it(|| self.execute(&conn)).await;
|
||||
Box::pin(common_utils::date_time::time_it(|| self.execute(&conn))).await;
|
||||
|
||||
push_drainer_delay(pushed_at, operation, table, tags);
|
||||
metrics::QUERY_EXECUTION_TIME.record(&metrics::CONTEXT, execution_time, tags);
|
||||
|
||||
Reference in New Issue
Block a user