Skip to content

feat(snuba): Add referrer for getsentry's LLM cost stats endpoint - #131477

Merged
vaind merged 1 commit into
masterfrom
ivan/seer-cost-breakdown-stats-61eb05
Nov 18, 2026
Merged

vaind merged 1 commit into
masterfrom
ivan/seer-cost-breakdown-stats-61eb05

Conversation

@vaind

@vaind vaind commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

getsentry is adding an endpoint that returns an organization's LLM cost per billed feature over time, for a new Seer tab in Stats & Usage. Its Snuba query needs a referrer of its own. Without one, every query logs an unknown-referrer warning and its load blends into the billing usage service's referrer.

Needed by https://github.com/getsentry/getsentry/pull/23324, which can't merge until sentry-version includes this change.

Refs CW-3105

getsentry's new Stats & Usage endpoint reads LLM proxy cost per feature. A referrer of its own keeps that query load apart from the billing usage service's.

Refs CW-3105
@linear-code

linear-code Bot commented Nov 17, 2026

Copy link
Copy Markdown

CW-3105

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 17, 2026
@vaind
vaind marked this pull request as ready for review November 17, 2026 19:33
@vaind
vaind requested a review from a team as a code owner November 17, 2026 19:33
@vaind
vaind merged commit 3c1ddaf into master Nov 18, 2026
106 checks passed
@vaind
vaind deleted the ivan/seer-cost-breakdown-stats-61eb05 branch November 18, 2026 06:39
vaind added a commit that referenced this pull request Nov 19, 2026
…131751)

getsentry's LLM cost stats endpoint (#131477 added its referrer) now
reports Seer credits rather than LLM cost, so
getsentry/getsentry#23373 renames it to Seer
usage stats. This adds the matching
`getsentry.api.customer-seer-usage-stats` referrer.

The old `getsentry.api.customer-llm-cost-stats` referrer stays, because
getsentry uses it until
getsentry/getsentry#23373 deploys. A follow-up
removes it after that.

Refs CW-3105

<!-- junior-request-attribution:start -->
via **Ivan**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0CJMHDNUE9%3A1795070310.376699 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CJMHDNUE9%3A1795070310.376699)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CJMHDNUE9%3A1795070310.376699/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: Ivan Dlugos <[email protected]>
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.

2 participants