Skip to content

Commit 8807bde

Browse files
committed
Now it makes sense
1 parent 3d11f02 commit 8807bde

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

crates/router/src/core/api_keys.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,7 @@ pub async fn add_api_key_expiry_task(
273273
metrics::TASKS_ADDED_COUNT.add(
274274
&metrics::CONTEXT,
275275
1,
276-
&[metrics::request::add_attributes(
277-
"api_key_expiry",
278-
format!("{:#?}", expiry_reminder_days.to_owned()),
279-
)],
276+
&[metrics::request::add_attributes("flow", "ApiKeyExpiry")],
280277
);
281278

282279
Ok(())

crates/router/src/core/payment_methods/vault.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,8 @@ pub async fn start_tokenize_data_workflow(
988988
&metrics::CONTEXT,
989989
1,
990990
&[metrics::request::add_attributes(
991-
"delete_tokenize_data",
992-
"DELETE_TOKENIZE_DATA",
991+
"flow",
992+
"DeleteTokenizeData",
993993
)],
994994
);
995995
}
@@ -1040,8 +1040,8 @@ pub async fn retry_delete_tokenize(
10401040
&metrics::CONTEXT,
10411041
1,
10421042
&[metrics::request::add_attributes(
1043-
"delete_tokenize_data",
1044-
"DELETE_TOKENIZE_DATA",
1043+
"flow",
1044+
"DeleteTokenizeData",
10451045
)],
10461046
);
10471047
retry_schedule

crates/router/src/core/payments/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ where
991991
&metrics::CONTEXT,
992992
1,
993993
&[metrics::request::add_attributes(
994-
"operation",
994+
"flow",
995995
format!("{:#?}", operation),
996996
)],
997997
);
@@ -1006,7 +1006,7 @@ where
10061006
&metrics::CONTEXT,
10071007
1,
10081008
&[metrics::request::add_attributes(
1009-
"operation",
1009+
"flow",
10101010
format!("{:#?}", operation),
10111011
)],
10121012
);

crates/router/src/core/refunds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ pub async fn add_refund_sync_task(
10911091
metrics::TASKS_ADDED_COUNT.add(
10921092
&metrics::CONTEXT,
10931093
1,
1094-
&[metrics::request::add_attributes("refund", "REFUND")],
1094+
&[metrics::request::add_attributes("flow", "Refund")],
10951095
);
10961096

10971097
Ok(response)
@@ -1181,7 +1181,7 @@ pub async fn retry_refund_sync_task(
11811181
metrics::TASKS_RESET_COUNT.add(
11821182
&metrics::CONTEXT,
11831183
1,
1184-
&[metrics::request::add_attributes("refund", "REFUND")],
1184+
&[metrics::request::add_attributes("flow", "Refund")],
11851185
);
11861186
retry_schedule
11871187
}

crates/router/src/workflows/api_key_expiry.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ Team Hyperswitch"),
119119
metrics::TASKS_RESET_COUNT.add(
120120
&metrics::CONTEXT,
121121
1,
122-
&[metrics::request::add_attributes(
123-
"api_key_expiry",
124-
format!("API KEY EXPIRY"),
125-
)],
122+
&[metrics::request::add_attributes("flow", "ApiKeyExpiry")],
126123
);
127124
}
128125

0 commit comments

Comments
 (0)