ic
ic copied to clipboard
chore: add canister message queue latency metric
This PR adds a metric to measure the queue latency of canister messages for both ingress and request messages.
For ingress messages, since the start time is not stored, the start time is estimated using the expiry time and the current expiration limit. The metric also tracks the call depth for request messages, as it is relevant for them.