-
Notifications
You must be signed in to change notification settings - Fork 120
chore(server): Remove GenerateBillingOutcome flag usage #6228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1100,8 +1100,16 @@ def test_discard_transaction( | |
| spans = spans_consumer.get_spans(n=2) | ||
| assert len(spans) == 2 | ||
|
|
||
| outcomes = outcomes_consumer.get_outcomes() | ||
| assert [(o["category"], o["outcome"], o["reason"]) for o in outcomes] == [ | ||
| outcomes = outcomes_consumer.get_outcomes(n=3) | ||
|
|
||
| outcomes.sort(key=lambda o: o["outcome"]) | ||
|
|
||
| # skip billing outcomes | ||
| assert outcomes[0]["outcome"] == 0 | ||
| assert outcomes[1]["outcome"] == 0 | ||
|
|
||
| o = outcomes[2] | ||
| assert [(o["category"], o["outcome"], o["reason"])] == [ | ||
| (9, 1, "discarded"), # TransactionIndexed, Filtered | ||
| ] | ||
|
Comment on lines
+1104
to
1114
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The test Suggested FixThe test should be made more robust. Instead of fetching a hardcoded number of outcomes with Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graduated billing flag not preserved
Medium Severity
Removing
GenerateBillingOutcomewithout a deprecated serde variant orGRADUATED_FEATURE_FLAGSentry meansorganizations:relay-generate-billing-outcomedeserializes asUnknownand is dropped fromFeatureSet. Upstream Relays no longer retain or inject that flag in forwarded project configs, so older processing Relays that still gatetrack_accepted_outcomeon it can stop emitting metric billing outcomes.Reviewed by Cursor Bugbot for commit 69b1fb4. Configure here.