Repository navigation
Conversation
SEER_CREDITS usage carries the Seer feature that incurred it, but GetUsage and GetUsageByProject only report a total per category. A new group_by field on both requests names the tag keys to split usage by, and each CategoryUsage returns the split in tagged_usage while data keeps the category total, so existing callers see no change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).
|
This branch has not been deployed
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.
SEER_CREDITS usage carries the Seer feature that incurred it, but
GetUsageandGetUsageByProjectonly return a total per category. This adds a way to ask for that usage split by tag.GetUsageRequestandGetUsageByProjectRequestgetrepeated string group_by, the tag keys to split by, e.g.["feature"].CategoryUsagegetsrepeated TaggedUsage tagged_usage, one entry per distinct combination of tag values.datais still the category total, so callers that don't setgroup_bysee no change.billing.v1.UsageTagkey/value message. Tags are a repeated list rather than a map so they stay ingroup_byorder.Tag keys are strings so other categories can add tags without a proto change. The service is expected to accept only the keys each category supports. A category without a requested tag returns one entry with an empty value, so
tagged_usagealways coversdata.For the getsentry implementation:
data.totalunless the remainder is handed out across features.🤖 Generated with Claude Code