feat(metrics): new counter metrics for scheduler (#31)

This commit is contained in:
Nishant Joshi
2022-11-28 11:41:07 +05:30
committed by GitHub
parent 10003cd6fe
commit d67bd801f6
5 changed files with 21 additions and 29 deletions

View File

@ -212,7 +212,7 @@ where
payment_attempt: &storage::PaymentAttempt,
) -> CustomResult<(), errors::ApiErrorResponse> {
if helpers::check_if_operation_confirm(self) {
metrics::JOB_COUNT.add(1, &[]); // Metrics
metrics::TASKS_ADDED_COUNT.add(1, &[]); // Metrics
let schedule_time = payment_sync::get_sync_process_schedule_time(
&payment_attempt.connector,