Repository navigation
feat(snuba): Add referrer for getsentry's LLM cost stats endpoint - #131477
Merged
Merged
Conversation
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
vaind
marked this pull request as ready for review
November 17, 2026 19:33
sehr-m
approved these changes
Nov 17, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-versionincludes this change.Refs CW-3105