Skip to content

Classify Rediscala Redis server errors - #20776

Open
trask with Copilot wants to merge 14 commits into
mainfrom
copilot/redis-server-error-classification
Open

trask with Copilot wants to merge 14 commits into
mainfrom
copilot/redis-server-error-classification

Conversation

Copilot AI commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Set error.type on Rediscala spans and database duration metrics to the first space-delimited error code in server replies carried by ReplyErrorException, for example WRONGTYPE or CUSTOMCODE.

Accept custom and future server error codes without an allowlist. Unrelated failures and replies without a usable prefix retain the canonical exception-class fallback.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-10-22 04:58 UTC

Review the latest changes.

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] Extract Redis server error prefixes from ReplyErrorException Classify Rediscala Redis server errors Oct 20, 2026
Copilot AI requested a review from trask October 20, 2026 19:12
@trask
trask requested a balanced review from Copilot October 20, 2026 19:15

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

The bounded classification preserves fallback behavior, has focused coverage, and has no identified blocking issues.

No open issues 🎉

What changed in this PR

Adds Redis server-error classification to Rediscala telemetry while preserving shared fallback behavior.

Changes:

  • Recognizes known reply prefixes from ReplyErrorException.
  • Tests WRONGTYPE on spans and duration metrics, plus classification fallback cases.
File Description
instrumentation/​rediscala-1.8/​javaagent/​src/​test/​scala/​io/​opentelemetry/​javaagent/​instrumentation/​rediscala/​v1_8/​RediscalaClientTest.scala Adds real Redis error telemetry coverage.
instrumentation/​rediscala-1.8/​javaagent/​src/​main/​java/​io/​opentelemetry/​javaagent/​instrumentation/​rediscala/​v1_8/​RediscalaAttributesGetter.java Classifies known Redis error prefixes.
instrumentation/​rediscala-1.8/​javaagent-unit-tests/​src/​test/​java/​io/​opentelemetry/​javaagent/​instrumentation/​rediscala/​v1_8/​RediscalaAttributesGetterTest.java Tests recognized prefixes and fallback cases.

Review effort: Balanced

Copilot AI and others added 2 commits October 20, 2026 22:45
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 20, 2026 22:51
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 02:47
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 03:36
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 03:59
trask and others added 3 commits October 20, 2026 23:05
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 16:17
Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI requested a review from trask October 21, 2026 17:12
@trask
trask requested a balanced review from Copilot October 21, 2026 18:12

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

The focused change preserves fallback behavior, includes integration coverage, and has no identified blocking issues.

No open issues 🎉

Review effort: Balanced

@trask
trask marked this pull request as ready for review October 22, 2026 04:57
@trask
trask requested a review from a team as a code owner October 22, 2026 04:57

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