Skip to content

feat(billing): Define retention policy category identity#119775

Draft
dashed wants to merge 1 commit into
masterfrom
aleal/feat/retention-policy-identity
Draft

feat(billing): Define retention policy category identity#119775
dashed wants to merge 1 commit into
masterfrom
aleal/feat/retention-policy-identity

Conversation

@dashed

@dashed dashed commented Jul 15, 2026

Copy link
Copy Markdown
Member

Retention policy categories now have an explicit, immutable relationship to Sentry runtime categories, retention wire keys, and alias groups. This keeps billing protobuf identity distinct from runtime identity—for example, transactions and spans remain separate runtime categories while sharing the established span retention projection.

Only the four mappings already used by current retention configuration are enabled: log bytes, transactions, spans, and trace metrics. Every other named billing protobuf category is explicitly classified as unsupported, and the exhaustive tests require a deliberate retention decision whenever that enum changes. The adapter is pure preparation for package policy work and does not change Relay configuration, customer serialization, quota routing, or other runtime behavior.

Focused coverage exercises all supported and unsupported decisions, unknown future values, strict and filtering lookup semantics, alias behavior, immutability, and parity with the existing retention wire mapping.

Add an explicit, immutable mapping between billing policy categories, Sentry runtime categories, and retention wire aliases. Classify all other current proto categories as unsupported so future enum changes require deliberate retention review.

Co-Authored-By: OpenAI GPT-5.6 <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant