Skip to content

Classify Dubbo Triple errors by protocol status - #20782

Draft
trask with Copilot wants to merge 9 commits into
mainfrom
copilot/dubbo-rpc-exception-code-classification
Draft

trask with Copilot wants to merge 9 commits into
mainfrom
copilot/dubbo-rpc-exception-code-classification

Conversation

Copilot AI commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Classifies Dubbo Triple failures by their preserved protocol status in RPC-preview telemetry instead of grouping them under StatusRpcException.

For example, a preserved client deadline failure produces:

error.type = "DEADLINE_EXCEEDED"

Client and server spans and duration metrics omit the failure-only rpc.response.status_code attribute rather than duplicating protocol error codes.

Uses the exception class when no Triple status is available, including native Dubbo failures. Applies role-specific client/server error rules without adding bytecode hooks; response statuses unavailable at the existing filter boundary are not inferred.

@opentelemetry-pr-dashboard

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-10-20 18:53 UTC

Move out of draft to request review.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI changed the title [WIP] Add classification for Dubbo RPC exception codes Classify Dubbo RPC errors by exception code Oct 20, 2026
Copilot AI requested a review from trask October 20, 2026 19:07
@trask
trask requested a balanced review from Copilot October 20, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

Review found no blocking issues in classification, fallback handling, preview gating, or telemetry integration.

No open issues 🎉

What changed in this PR

Adds structured Dubbo RPC error classification to preview telemetry while preserving legacy output.

Changes:

  • Maps known exception codes 1–13 to error.type, including wrapped asynchronous failures.
  • Adds coverage for client/server errors, fallbacks, success, RPC modes, and preview duration metrics.
File Description
instrumentation/​apache-dubbo-2.7/​library-autoconfigure/​src/​test/​java/​io/​opentelemetry/​instrumentation/​apachedubbo/​v2_7/​TracingFilterTest.java Tests error classification and emitted telemetry.
instrumentation/​apache-dubbo-2.7/​library-autoconfigure/​src/​main/​java/​io/​opentelemetry/​instrumentation/​apachedubbo/​v2_7/​DubboRpcAttributesGetter.java Classifies known Dubbo exception codes.

Review effort: Balanced

Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 20, 2026 21:31
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 20, 2026 21:47
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 20, 2026 22:34
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 02:37
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 03:18
@trask trask changed the title Classify Dubbo RPC errors by exception code Classify Dubbo Triple errors by protocol status Oct 21, 2026
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 04:29
Preserve role-specific Triple error classification alongside explicit RPC schema selection. Apply the incoming failure-only response-status policy to both roles, support internal attribute removal, and correct latest-version integration fixtures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

3 participants