Skip to content

Add code label to gRPC metrics - #6685

Merged
guilload merged 1 commit into
mainfrom
guilload/add-status-code-label-to-grpc-metrics
Aug 12, 2026
Merged

Add code label to gRPC metrics#6685
guilload merged 1 commit into
mainfrom
guilload/add-status-code-label-to-grpc-metrics

Conversation

@guilload

Copy link
Copy Markdown
Member

No description provided.

@guilload
guilload requested a review from a team as a code owner August 12, 2026 20:24
@guilload
guilload force-pushed the guilload/add-status-code-label-to-grpc-metrics branch from 4a7b8f9 to 8c3c8b1 Compare August 12, 2026 20:35

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4a7b8f97ad

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

start,
rpc_name,
status: "cancelled",
grpc_code: "cancelled",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve deadline codes when timeouts drop the metrics future

When this middleware is placed inside an outer timeout, such as the metastore client stack where TimeoutLayer wraps metrics_layer, a timed-out call drops ResponseFuture before the inner future can return an error. This new default therefore emits code="cancelled" even though the caller receives the service timeout mapped to gRPC deadline_exceeded, so the added code label undercounts real deadline-exceeded client timeouts in those stacks; put metrics outside the timeout or mark timed-out drops separately.

Useful? React with 👍 / 👎.

@guilload
guilload merged commit 70bfc47 into main Aug 12, 2026
9 checks passed
@guilload
guilload deleted the guilload/add-status-code-label-to-grpc-metrics branch August 12, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants