Skip to content

Conversation

@mrduncan
Copy link
Member

@mrduncan mrduncan commented Dec 16, 2025

Example usage:

from sentry.billing import billing_service
from sentry.billing.config import UsageCategoryId

billing_service.usage_tracking.record_usage(
    org_id,
    UsageCategoryId.ERROR_ACCEPTED,
    {"project_id": project_id, "event_id": event_id, "key_id": dsn},
)

Goal is for src/sentry/billing/config.py to be the only file here that a product team might need to edit.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 16, 2025
@codecov
Copy link

codecov bot commented Dec 20, 2025

Codecov Report

❌ Patch coverage is 98.14815% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/billing/config.py 94.73% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #105079      +/-   ##
===========================================
+ Coverage   78.76%    80.64%   +1.88%     
===========================================
  Files        9408      9424      +16     
  Lines      403500    404448     +948     
  Branches    25631     25631              
===========================================
+ Hits       317804    326180    +8376     
+ Misses      85229     77801    -7428     
  Partials      467       467              

@getsantry
Copy link
Contributor

getsantry bot commented Jan 10, 2026

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Jan 10, 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 Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants