mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
fix(metrics): Add TASKS_ADDED_COUNT and TASKS_RESET_COUNT metrics in router scheduler flow (#3189)
This commit is contained in:
@ -115,6 +115,12 @@ Team Hyperswitch"),
|
||||
let task_ids = vec![task_id];
|
||||
db.process_tracker_update_process_status_by_ids(task_ids, updated_process_tracker_data)
|
||||
.await?;
|
||||
// Remaining tasks are re-scheduled, so will be resetting the added count
|
||||
metrics::TASKS_RESET_COUNT.add(
|
||||
&metrics::CONTEXT,
|
||||
1,
|
||||
&[metrics::request::add_attributes("flow", "ApiKeyExpiry")],
|
||||
);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user