Repository navigation
feat(execution): count delivered HTTP outcalls by call class - #12001
Conversation
Add a `class` label (`guaranteed response` or `best-effort`) to `execution_http_outcalls_delivered_total`, so that we can see how many HTTP outcalls are made with bounded-wait calls. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change adding call-class labels to HTTP outcall metrics.
No open issues 🎉
What changed in this PR
Adds call-class visibility to delivered HTTP outcall metrics, helping measure bounded-wait usage ahead of deadline-based cancellation in #11932.
Changes:
- Adds the
classlabel withguaranteed responseandbest-effortvalues, derived from the request context. - Initializes all 12 pricing-version, replication-kind, and call-class series.
- Updates metric assertions and adds a test covering both call classes.
| File | Description |
|---|---|
rs/execution_environment/src/metrics.rs |
Makes existing call-class label constants available within the crate. |
rs/execution_environment/src/execution_environment/tests.rs |
Updates series-count assertions and verifies counting by call class. |
rs/execution_environment/src/execution_environment_metrics.rs |
Registers and increments delivered outcall counters with the new label. |
Review effort: Balanced
|
✅ No security or compliance issues detected. Reviewed everything up to 2b2d86f. Security Overview
Detected Code Changes
|
|
Is "call class" a good name for the distinction of best effort and guaranteed response? Have we maybe used other terminology in the past? cc @alin-at-dfinity |
I'm reusing the existing label name which is "class": https://github.com/search?q=repo%3Adfinity%2Fic+LABEL_CLASS&type=code |
Adds a
classlabel (guaranteed responseorbest-effort) toexecution_http_outcalls_delivered_total, so that we can see how many HTTP outcalls are made with bounded-wait calls. That is useful for #11932, which cancels bounded-wait outcalls at their deadline.The class is read from the request in the outcall's context, using the label name and values that the other execution and message-routing metrics already use for the call class. Outcalls that time out are delivered through the same path, so the counter still covers every outcall.
For dashboards: the counter now has two series per (pricing version, replication kind) pair. Queries that aggregate over it are unaffected; ones that select a single series need a
sum.🤖 Generated with Claude Code