Skip to content

Commit

Permalink
chore: add comments to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayanbhat166 committed May 16, 2024
1 parent 58e828d commit 178cb0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/router/src/routes/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,14 @@ counter_metric!(TASK_ADDITION_FAILURES_COUNT, GLOBAL_METER); // Failures in task
counter_metric!(TASKS_RESET_COUNT, GLOBAL_METER); // Tasks reset in process tracker for requeue flow

// Access token metrics
//
// A counter to indicate the number of new access tokens created
counter_metric!(ACCESS_TOKEN_CREATION, GLOBAL_METER);

// A counter to indicate the access token cache hits
counter_metric!(ACCESS_TOKEN_CACHE_HIT, GLOBAL_METER);

// A counter to indicate the access token cache miss
counter_metric!(ACCESS_TOKEN_CACHE_MISS, GLOBAL_METER);

pub mod request;
Expand Down

0 comments on commit 178cb0f

Please sign in to comment.