Skip to content

feat(attributes): Deprecate rpc.grpc.status_code in favor of rpc.response.status_code - #494

Merged
buenaflor merged 3 commits into
getsentry:mainfrom
lucas-zimerman:lz/grpc/dep-grpc-statuscode
Jul 16, 2026
Merged

buenaflor merged 3 commits into
getsentry:mainfrom
lucas-zimerman:lz/grpc/dep-grpc-statuscode

Conversation

@lucas-zimerman

@lucas-zimerman lucas-zimerman commented Jul 14, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Deprecates rpc.grpc.status_code in favor of rpc.response.status_code, following OTel's deprecation (OTel recommends using the string representation of the gRPC status code on rpc.response.status_code instead of the numeric code).
  • Adds rpc.response.status_code and rpc.grpc.status_code as mutual aliases.

Closes #464

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

…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]>
@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Deprecate rpc.grpc.status_code in favor of rpc.response.status_code by lucas-zimerman in #494
  • Add deprecated messaging.destination_kind by andreiborza in #509
  • Add sentry.segment.name.source attribute by Lms24 in #466
  • Add attribute transformations by constantinius in #465
  • Add stable app vitals attributes by buenaflor in #493
  • Deprecate sentry.frames.* attributes by buenaflor in #500
  • Add missing AI legacy aliases from Relay SpanData by vgrozdanic in #498

Internal Changes 🔧

  • (attrs) Backport attributes and normalizations from Relay by Dav1dde in #497
  • (codeowners) Assign telemetry-experience to gen_ai/ai attributes by vgrozdanic in #506
  • (release) Show version in workflow run title by constantinius in #504

🤖 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]>

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checked back. Setting _status to null is correct.

@buenaflor
buenaflor enabled auto-merge (squash) July 16, 2026 13:45
@buenaflor
buenaflor merged commit 7a68e9c into getsentry:main Jul 16, 2026
14 checks passed
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.

Deprecate rpc.grpc.status_code in favour of rpc.response.status_code

3 participants