Skip to content

feat(billing): Add seer feature billing service protos - #477

Merged
volokluev merged 4 commits into
mainfrom
volokluev/reveng-665-seer-feature-billing
Oct 22, 2026
Merged

volokluev merged 4 commits into
mainfrom
volokluev/reveng-665-seer-feature-billing

Conversation

@volokluev

@volokluev volokluev commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Human summary

Somewhere we have to define which seer "features" (stored as strings in llm_proxy_cost_raw) are billable and what data category they map to. This service defines a concrete place to do that in configuration (see implementation PR for more details)

Bot shit

Adds DATA_CATEGORY_BILLABLE_SEER_CREDITS and the messages for a new SeerFeatureBillingService in getsentry.

The billing usage service reads Seer LLM costs from llm_proxy_cost_raw, where each row has a feature string (autofix, explorer, code_review, ...). This service tells it which data category each feature is billed under, and which features are never billed.

  • GetMappingRequest/Response: feature string → DataCategory.
  • GetIsFreeSeerFeatureRequest/Response: takes feature_id, returns is_free. A feature is free for every org or for none; per-org billing goes through a billable metric on the package.

Refs REVENG-665

Add DATA_CATEGORY_BILLABLE_SEER_CREDITS and request/response messages for
SeerFeatureBillingService, which maps Seer feature strings from LLM proxy
cost data to billing data categories and reports which features are free.

Refs REVENG-665
@linear-code

linear-code Bot commented Oct 22, 2026

Copy link
Copy Markdown

REVENG-665

@github-actions

github-actions Bot commented Oct 22, 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 22, 2026, 10:25 PM

message GetIsFreeSeerFeatureRequest {
// A Seer feature string, as recorded in LLM proxy cost data.
string feature_id = 1;
uint64 organization_id = 2;

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.

delete org id

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.

features should either be free for everyone or they will be defined on the package as part of the billable metric if we need to look up per-org

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.

Removed in 00b61f0. getsentry/getsentry#22717 is updated to match.

volokluev and others added 2 commits October 22, 2026 15:10
A Seer feature is either free for every organization, or billed per org
through a billable metric on the package.
@volokluev
volokluev marked this pull request as ready for review October 22, 2026 22:28
@volokluev
volokluev requested a review from a team as a code owner October 22, 2026 22:28
@volokluev
volokluev merged commit 1e49f87 into main Oct 22, 2026
16 checks passed
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.

2 participants