chore(flags): Remove 5 dead feature flags (batch 3)#108559
Merged
Conversation
Remove the following unused feature flag registrations: - organizations:profiling-flamegraph-always-use-direct-chunks - organizations:related-events - organizations:release-comparison-performance - organizations:reprocessing-v2 - organizations:transaction-name-mark-scrubbed-as-sanitized These flags have zero code references and no flagpole configuration. Identified by the scan_flags management command.
Contributor
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.
| manager.add("organizations:transaction-metrics-extraction", OrganizationFeature, FeatureHandlerStrategy.INTERNAL, api_expose=False) | ||
| # Enable feature to load explore link for transaction widgets | ||
| manager.add("organizations:transaction-widget-deprecation-explore-view", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True) | ||
| # Mark URL transactions scrubbed by regex patterns as "sanitized". |
Contributor
There was a problem hiding this comment.
Stale test snapshot still references removed feature flag
Low Severity
The organizations:transaction-name-mark-scrubbed-as-sanitized flag (which had default=True) is removed here, but tests/sentry/relay/snapshots/test_config/test_get_project_config/MONOLITH.pysnap still references it. Since this flag was enabled by default, it was included in the project config snapshot. Removing the registration without updating the snapshot will cause the test_get_project_config test to fail.
armenzg
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Remove unused feature flag registrations identified by the
scan_flagsmanagement command. These flags have zero code references and no flagpole configuration.Flags removed:
organizations:profiling-flamegraph-always-use-direct-chunksorganizations:related-eventsorganizations:release-comparison-performanceorganizations:reprocessing-v2organizations:transaction-name-mark-scrubbed-as-sanitizedTest plan