Skip to content

feat(attributes): Deprecate sentry.device.class in favor of device.class - #604

Draft
buenaflor wants to merge 2 commits into
mainfrom
feat/deprecate-sentry-device-class
Draft

feat(attributes): Deprecate sentry.device.class in favor of device.class#604
buenaflor wants to merge 2 commits into
mainfrom
feat/deprecate-sentry-device-class

Conversation

@buenaflor

@buenaflor buenaflor commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Description

Add sentry.device.class as a deprecated alias of device.class (_status: backfill) so ingest can copy the value onto the stable name.

device.class stays a string. The brief still describes the labels low / medium / high. Examples and additional context document what Relay actually writes today: stringified numeric class codes "1" / "2" / "3", not those labels.

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.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

buenaflor and others added 2 commits August 31, 2026 17:51
Add sentry.device.class as a deprecated alias so ingest can backfill
device.class. Document that Relay writes stringified numeric class codes
("1"/"2"/"3"), not the labels low/medium/high.

Co-authored-by: Cursor <cursoragent@cursor.com>
Treat the stored stringified class codes as the well-known values.
Keep low/medium/high as the product display mapping.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

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 sentry.device.class in favor of device.class by buenaflor in #604

Internal Changes 🔧

  • (descriptions) Fix http.client span description example by Lms24 in #603

🤖 This preview updates automatically when you update the PR.

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.

1 participant