Skip to content

chore(features): Remove organizations:device-class-synthesis feature#5816

Open
wedamija wants to merge 2 commits intomasterfrom
danf/remove-device-classification-feature
Open

chore(features): Remove organizations:device-class-synthesis feature#5816
wedamija wants to merge 2 commits intomasterfrom
danf/remove-device-classification-feature

Conversation

@wedamija
Copy link
Copy Markdown
Member

This feature has been released for many years. Removing the feature check here so that we can remove the feature from sentry.

My only concern here is that cabi path that defaulted it to false. If that might be a problem, we could always keep the variable around and just stop relying on the feature flag.

Also wanted to check that this is fine to release in self-hosted.

This feature has been released for many years. Removing the feature check here so that we can remove the feature from sentry.

My only concern here is that cabi path that defaulted it to false. If that might be a problem, we could always keep the variable around and just stop relying on the feature flag.

Also wanted to check that this is fine to release in self-hosted.
@wedamija wedamija force-pushed the danf/remove-device-classification-feature branch from 787ab7d to 3d963b9 Compare April 10, 2026 21:38
is_renormalize,
remove_other: config.remove_other.unwrap_or(!is_renormalize),
emit_event_errors: !is_renormalize,
device_class_synthesis_config: false, // only supported in relay
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was my main concern - should we keep this in place?

Copy link
Copy Markdown

@cursor cursor bot left a comment

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 3d963b9. Configure here.

if config.device_class_synthesis_config {
normalize_device_class(event);
}
normalize_device_class(event);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cabi path now unconditionally strips client-set device.class tags

Medium Severity

The relay-cabi path previously had device_class_synthesis_config: false, meaning normalize_device_class was never called for cabi consumers. Now it runs unconditionally for all paths. The normalize_device_class function first removes any existing client-set device.class tag, then re-computes it from device context. For cabi consumers (e.g. sentry-native), this is a behavior change: client-set device.class tags will now be silently stripped, even when device context is insufficient to compute a replacement.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 3d963b9. Configure here.

Device class tagging now always runs (no longer gated behind the
removed feature flag), so the snapshot output includes the new tag.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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