Handle multiple Stripe subscription items - #690
Conversation
🤖 Claude Code ReviewPR: #690 Here's my review of the PR: PR Review: Metered Billing Migration — Subscription Item FilteringCommits: SummaryAdds a Positives
Issues1. In 2. Potential for silent misconfiguration if In 3. Minor: commit messages are non-descriptive The commit messages Style / CLAUDE.md Compliance
SuggestionOnce the migration is complete and old subscription items are cleaned up in Stripe, this filtering code should be removed to reduce unnecessary complexity. Consider adding a Model: claude-opus-4-6 |
|
| Branch | u/ep/stripe-default |
| Testbed | ubuntu-22.04 |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| Adapter::Json | 📈 view plot 🚷 view threshold | 3.77 µs(+12.50%)Baseline: 3.35 µs | 4.56 µs (82.77%) |
| Adapter::Magic (JSON) | 📈 view plot 🚷 view threshold | 3.71 µs(+10.83%)Baseline: 3.35 µs | 4.49 µs (82.78%) |
| Adapter::Magic (Rust) | 📈 view plot 🚷 view threshold | 26.15 µs(+2.50%)Baseline: 25.51 µs | 31.08 µs (84.13%) |
| Adapter::Rust | 📈 view plot 🚷 view threshold | 2.86 µs(+0.93%)Baseline: 2.83 µs | 3.38 µs (84.68%) |
| Adapter::RustBench | 📈 view plot 🚷 view threshold | 2.85 µs(+0.54%)Baseline: 2.83 µs | 3.36 µs (84.79%) |
| head_version_insert/batch/10 | 📈 view plot 🚷 view threshold | 105.47 µs(+6.99%)Baseline: 98.58 µs | 123.15 µs (85.65%) |
| head_version_insert/batch/100 | 📈 view plot 🚷 view threshold | 244.38 µs(+3.67%)Baseline: 235.74 µs | 272.10 µs (89.81%) |
| head_version_insert/batch/255 | 📈 view plot 🚷 view threshold | 468.20 µs(+1.92%)Baseline: 459.37 µs | 492.77 µs (95.01%) |
| head_version_insert/batch/50 | 📈 view plot 🚷 view threshold | 165.68 µs(+4.28%)Baseline: 158.87 µs | 185.39 µs (89.37%) |
| threshold_query/join/10 | 📈 view plot 🚷 view threshold | 147.84 µs(+3.81%)Baseline: 142.42 µs | 172.56 µs (85.67%) |
| threshold_query/join/20 | 📈 view plot 🚷 view threshold | 162.94 µs(+3.97%)Baseline: 156.72 µs | 188.50 µs (86.44%) |
| threshold_query/join/5 | 📈 view plot 🚷 view threshold | 140.55 µs(+4.29%)Baseline: 134.77 µs | 162.98 µs (86.24%) |
| threshold_query/join/50 | 📈 view plot 🚷 view threshold | 203.91 µs(+3.35%)Baseline: 197.31 µs | 229.99 µs (88.66%) |
2219248 to
a0d6471
Compare
Last year, Stripe deprecated the old usage-based billing. As we look to add bare metal runners, we will need to add a new usage-based billing product. Instead of managing both the old and new usage-based systems, move the current metrics based billing over to the new
metered system.The actual transition will take place in #689
However, in order to have a smooth cutover, we will need to have multiple Stripe subscription items active at once. The current
defaultkeys will be used for now and then cutover to the newmetricskeys.