mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
build(deps): bump opentelemetry crates to 0.27 (#6774)
This commit is contained in:
@ -257,19 +257,16 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
let attributes = router_env::metric_attributes!(("operation", operation.clone()));
|
||||
result
|
||||
.await
|
||||
.inspect(|_| {
|
||||
logger::debug!(kv_operation= %operation, status="success");
|
||||
let keyvalue = router_env::opentelemetry::KeyValue::new("operation", operation.clone());
|
||||
|
||||
metrics::KV_OPERATION_SUCCESSFUL.add(&metrics::CONTEXT, 1, &[keyvalue]);
|
||||
metrics::KV_OPERATION_SUCCESSFUL.add(1, attributes);
|
||||
})
|
||||
.inspect_err(|err| {
|
||||
logger::error!(kv_operation = %operation, status="error", error = ?err);
|
||||
let keyvalue = router_env::opentelemetry::KeyValue::new("operation", operation);
|
||||
|
||||
metrics::KV_OPERATION_FAILED.add(&metrics::CONTEXT, 1, &[keyvalue]);
|
||||
metrics::KV_OPERATION_FAILED.add(1, attributes);
|
||||
})
|
||||
}
|
||||
|
||||
@ -320,7 +317,7 @@ where
|
||||
.await
|
||||
{
|
||||
Ok(_) => {
|
||||
metrics::KV_SOFT_KILL_ACTIVE_UPDATE.add(&metrics::CONTEXT, 1, &[]);
|
||||
metrics::KV_SOFT_KILL_ACTIVE_UPDATE.add(1, &[]);
|
||||
MerchantStorageScheme::RedisKv
|
||||
}
|
||||
Err(_) => MerchantStorageScheme::PostgresOnly,
|
||||
|
||||
Reference in New Issue
Block a user