Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Nov 7, 2024
1 parent b7c339b commit 2cab552
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/symbolicator/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ impl RequestService {
}
}

// Using `task_name` as the tag should be fine, there is only a small
// fixed number of them.
metric!(counter("requests.accepted") += 1, "task" => task_name);

let request_id = RequestId::new(uuid::Uuid::new_v4());
Expand Down Expand Up @@ -479,6 +481,9 @@ impl RequestService {
// We stop counting the request as an in-flight request at this point, even though
// it will stay in the `requests` map for another 90s.
current_requests.fetch_sub(1, Ordering::Relaxed);

// Using `task_name` as the tag should be fine, there is only a small
// fixed number of them.
metric!(counter("requests.processed") += 1, "task" => task_name);

// Wait before removing the channel from the computation map to allow clients to
Expand Down

0 comments on commit 2cab552

Please sign in to comment.