Blog

A chain report for the backend team: where the flow breaks

“Publishing listings sometimes doesn’t work” is a message the backend team can do nothing with. They need facts: which step, how often, with what response. A chain monitor in Microkoi Bench collects them on its own, and “Export report…” turns them into HTML that opens in any browser plus a CSV with every check.

Why “sometimes doesn’t work” never gets fixed

The backend team can’t see an intermittent bug on their side: their request went through. Five screenshots in a chat don’t say how often it happens or on which request. The ticket ends up as “can’t reproduce”.

Take a real estate listings service. An apartment owner’s path is the “Listing publication” chain: sign-in in the “Authorization” block, then three steps.

StepRequestExpectation
1 “Draft”POST /listings“Status code” 201
2 “Publication”POST /listings/{{listingId}}/publish“Status code” 200
3 “Listing”GET /listings/{{listingId}}“JSON value” data.status “equals” published

The chain has been in monitoring for a week with a check every 5 minutes, and the monitor keeps turning “Unstable”. Time to build a report.

Export the report

  1. In “Monitoring”, hover over the monitor’s row, open the “⋯” menu, and choose “Export report…”.
  2. Under “Period”, choose “Week”, or “Custom” with “From” and “To” dates. Below the period, Bench shows the exact bounds, roughly how many checks the report will include, and how large the CSV will be.
  3. Click “Save report…” and pick a folder.
  4. The window confirms “Report saved”. Click “Open”, and the HTML opens in your browser.

The report is saved as two files with the same name: HTML for people and a CSV with every check of the period for scripts. No Bench needed: anyone you send it to can open the file.

The summary is one sentence

The report is titled “Chain: Listing publication”. Below the title is a summary you can paste into the ticket as is:

The chain passed 97.6% of runs: 48 of 2,016 broke, 41 of them at step 2 “Publication”: status code 504, expected 200.

Below that are tiles: the share of runs that passed, p50 and p95 for the whole chain, the number of runs, incidents, sign-ins, and token refreshes.

Schema: where the path breaks

The “Schema” section is the same strip of steps as in the editor. Each step has a bar for the share of runs that broke there. The worst step has a red frame and a full-width bar, the others are scaled against it, and the number next to each bar is the real share. Below 1% the share is yellow, from 1% it’s red.

Variable values never get into the report: the arrows show only names like listingId. The token, passwords, and secret variables are replaced with dots.

Steps: a table to dig into

The “Steps” section shows the same in numbers:

StepExecutedBroke the chainp95, msMain cause
1 “Draft”2,0164310status code 500, expected 201
2 “Publication”2,012412,840status code 504, expected 200
3 “Listing”1,9713190data.status = moderation, expected published

“Executed” is how many runs reached the step, “Broke the chain” is how many stopped there, and the share is counted from executed runs. “Publication” has a p95 of almost three seconds and breaks with 504. It looks like publishing doesn’t fit the gateway timeout. That’s a hypothesis with numbers, not a complaint.

Incidents and sign-in

In the “Incidents” section, each outage has a strip: “A square is a step: green passed, red broke the chain, empty didn’t run. The circle in front is sign-in.” The strips show that the week’s outages land on one step instead of scattering across different errors.

The “Sign-in” section settles the question of whether signing in is to blame: how many times the token was taken from a previous run, refreshed, or obtained by signing in again. If sign-in never broke the chain, the report says so.

CSV: verify and recount

The CSV has every check of the period: time with milliseconds, server, status code, cause, and response time phases. The chain_step column is the number of the step where the run broke, auth means sign-in, and empty means the run passed. The backend team can match break times against their own logs without retelling.

At the bottom of the HTML are the CSV’s name, row count, and SHA-256 checksum. If the checksum matches, the file hasn’t changed since the report was built:

CSV checksum
# macOS and Linux
shasum -a 256 <file>.csv

# Windows
certutil -hashfile <file>.csv SHA256

After the fix

When the backend ships a fix, open the monitor’s “Analytics” and compare the week after the fix with the one before: “Previous period” in the comparison menu. The table under the tiles shows the difference in availability, p95, and failures, and “Chain steps” shows whether “Publication” still breaks.

Export a report for your own chain in beta 0.9.6 and write to beta@microkoi.com about what the backend team was missing to take the ticket. We read every email.

Microkoi BenchMonitoringScheduled endpoint checks

Try it on your own project

The beta is free and needs no sign-up. Download it, pick your project folder and start the proxy — your first requests will show up within minutes.

Version 0.9.6 · macOS, Windows and Linux · no sign-up