Engineering blog
Notes from the ingestion path
Engineering writing from the Metric Ingest team — what we learned building a buffered metrics edge, and the trade-offs we made along the way.
Why we sample at the edge, not in the client
Client-side sampling is cheaper to build and worse for almost everything else. Here is the reasoning that pushed us to do it at the POP instead.
A 1.1 KB beacon: what we cut, and what we refused to cut
Our RUM script is 1,082 bytes gzipped. Getting there meant saying no to a lot of features — and yes to a few that cost us bytes but earned their place.
Reading p95 without keeping every sample
You cannot average percentiles, and you cannot afford to store every raw sample. Histograms are the boring, correct answer — here is how we use them at the edge.
Backfilling metrics after a backend outage
A write-up of what actually happens inside the edge buffer when a customer's backend goes dark for 48 minutes, and the ordering decisions that make replay safe.