mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor(routing): remove payment_id from dynamic_routing metrics (#6535)
This commit is contained in:
@ -733,7 +733,7 @@ pub async fn push_metrics_with_update_window_for_success_based_routing(
|
|||||||
.label
|
.label
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
let (first_success_based_connector, merchant_connector_id) = first_success_based_connector_label
|
let (first_success_based_connector, _) = first_success_based_connector_label
|
||||||
.split_once(':')
|
.split_once(':')
|
||||||
.ok_or(errors::ApiErrorResponse::InternalServerError)
|
.ok_or(errors::ApiErrorResponse::InternalServerError)
|
||||||
.attach_printable(format!(
|
.attach_printable(format!(
|
||||||
@ -753,17 +753,12 @@ pub async fn push_metrics_with_update_window_for_success_based_routing(
|
|||||||
&add_attributes([
|
&add_attributes([
|
||||||
("tenant", state.tenant.tenant_id.clone()),
|
("tenant", state.tenant.tenant_id.clone()),
|
||||||
(
|
(
|
||||||
"merchant_id",
|
"merchant_profile_id",
|
||||||
payment_attempt.merchant_id.get_string_repr().to_string(),
|
format!(
|
||||||
),
|
"{}:{}",
|
||||||
(
|
payment_attempt.merchant_id.get_string_repr(),
|
||||||
"profile_id",
|
payment_attempt.profile_id.get_string_repr()
|
||||||
payment_attempt.profile_id.get_string_repr().to_string(),
|
),
|
||||||
),
|
|
||||||
("merchant_connector_id", merchant_connector_id.to_string()),
|
|
||||||
(
|
|
||||||
"payment_id",
|
|
||||||
payment_attempt.payment_id.get_string_repr().to_string(),
|
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"success_based_routing_connector",
|
"success_based_routing_connector",
|
||||||
|
|||||||
Reference in New Issue
Block a user