BlypCloud

Animations

Every preview loops on its own. Replay restarts one from the top.

looping

Inspect a live error

A new log arrives, then its details open in place. 6s loop.

Logscheckout-api / production
Live
TimeLevelSourceMessage
INFOworkerBlypError INVENTORY_LOCKEDreq_7c1e
INFOstripepayment_intent retry 1/3pi_3Nf
INFOcheckoutcheckout.completedusr_29a1
INFOcartcart hydrated · 3 itemscart_18d
Error14:02:11.482
INVENTORY_LOCKED
trace.id
req_7c1e
error.status
409
source
src/jobs/reserve.ts:42

Open the alert rule editor

The editor slides in over the rules list. 5s loop.

Alerts
2 firing
Checkout errors spikeSlack · #payments-oncall
Checkout latencyPagerDuty
Webhook failuresEmail
Checkout errors spike

When ≥ 25 errors arrive within 5 min, notify #payments-oncall.

Last 24h · would have fired twice

Receive the first event

The waiting state gives way to the first payload. 6s loop.

Project setup
checkout-api
First event received in 4.2s
{"message": "hello from checkout-api", "level": "info", "first": true}

@blyp fix it, from Slack

An alert lands, someone tags Blyp Bot, a draft PR opens and the error rate drops. 10s loop.

#payments-oncallAcme Labs · thread
3 replies
Blyp APP14:03
Checkout errors spike · 1,204 × INVENTORY_LOCKED in 5 min
checkout-api / production · since a41c9e2
MI
Mohammed Ibrahim14:04
@blyp fix it pls
Blyp APP14:04
On it. Working from trace req_7c1e and acme/checkout-api.
Found root cause in src/routes/checkout.ts:88
Reordered reserve before payment, 2 files
Tests pass, 148 of 148
fix(checkout): reserve inventory before paymentacme/checkout-api#412 · blyp/fix-inventory-locked
Draft PR