Skip to content

feat(billing): Add snapshot image data category - #483

Open
noahsmartin wants to merge 2 commits into
mainfrom
noahmartin/add-snapshot-image-data-category
Open

noahsmartin wants to merge 2 commits into
mainfrom
noahmartin/add-snapshot-image-data-category

Conversation

@noahsmartin

@noahsmartin noahsmartin commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Add DATA_CATEGORY_SNAPSHOT_IMAGE = 35 to the billing DataCategory enum.

Sentry already records accepted outcomes for preprod snapshot images: the snapshot upload endpoint calls track_outcome with DataCategory.SNAPSHOT_IMAGE (Relay's SnapshotImage = 38), gated by organizations:preprod-snapshot-billing-outcomes. Billing platform line items reference usage through CategoryReference.data_category, so a snapshots SKU can't meter that usage until the category exists here.

Follow-ups once this is released:

  • sentry: map DataCategory.SNAPSHOT_IMAGE to the new proto value in category_mapping.py
  • getsentry: define the snapshots line item

Add DATA_CATEGORY_SNAPSHOT_IMAGE so billing platform line items can
meter preprod snapshot images. Relay already emits outcomes for this
category (SnapshotImage = 38), but billable metric expressions can only
reference categories defined in this enum.
@noahsmartin
noahsmartin requested a review from a team as a code owner October 27, 2026 03:47
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedOct 27, 2026, 3:48 AM

This branch has not been deployed

No deployments
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