Skip to content

Commit

Permalink
feat(metrics): Emit accepted and processed requests
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Oct 15, 2024
1 parent 20c6462 commit 961c7c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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 {
}
}

metric!(counter("requests.accepted") += 1);

let request_id = RequestId::new(uuid::Uuid::new_v4());
requests
.lock()
Expand Down Expand Up @@ -477,6 +479,7 @@ 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);
metric!(counter("requests.processed") += 1);

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

0 comments on commit 961c7c4

Please sign in to comment.