Repository navigation
feat(attributes): Deprecate rpc.grpc.status_code in favor of rpc.response.status_code - #494
Conversation
…onse.status_code Follows OTel's deprecation of rpc.grpc.status_code, which recommends using the string representation of the gRPC status code on rpc.response.status_code instead. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
rpc.grpc.status_code is an integer while rpc.response.status_code is a string, so a backfill would copy raw numeric codes onto the string attribute. Set _status to null instead, matching the mcp.tool.result.is_error precedent for deprecations that can't be automatically backfilled due to type mismatches. Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5eea0ff. Configure here.
Lms24
left a comment
There was a problem hiding this comment.
The PR looks good to me! Before we merge this, I need to check how we handle deprecations with different types (as-in, what we need to do in Relay/Product to correctly migrate these). Will get back to you!
Lms24
left a comment
There was a problem hiding this comment.
Checked back. Setting _status to null is correct.

Description
rpc.grpc.status_codein favor ofrpc.response.status_code, following OTel's deprecation (OTel recommends using the string representation of the gRPC status code onrpc.response.status_codeinstead of the numeric code).rpc.response.status_codeandrpc.grpc.status_codeas mutual aliases.Closes #464
PR Checklist