“Thank you ALL! It was a boring day, but boring is good! Thank you everyone for the focus and support.”
Ask an online retailer which week they would least like to fly blind, and they will all name the same one. Three weeks before Cyber Week, one of our customers rehearsed it: their full peak traffic, against production, for a whole afternoon. Their edge collectors produced 49 million spans a second at peak, three times a normal day. Dash0 stored 1.3 million a second of them, and nothing broke.
This post is about how. Three mechanisms did the work: tail sampling, metrics derived from every span, and aggregation of those metrics. Each one is simple on its own. Together they kept the customer's network bill, our ingest pipeline and their dashboards boring on a day that could easily have been exciting.
- Spans produced at the edge, peak
- 49.2M/s
- 3.0× Mon/Tue in the window
- Spans kept
- 2.6%
- 1 in 40, by rule
- Left the network in 7 hours
- 3.9 TB
- 154 TB had we kept 100%
- On disk for the 7 hours
- 5.8 TB
- 230 TB had we kept 100%
- Peak spans/sec stored
- 1.31M/s
- 14:40 UTC
- Peak metric points/sec
- 2.53M/s
- stored as many as sent, RED included
The rehearsal
On 4th November the customer ramped their production systems from an ordinary Wednesday to their Cyber Week target in about two hours. They held it for most of the afternoon and pushed harder for the last half hour.
Their OpenTelemetry collectors scaled out with the workload, from the usual 800 to 1,000 instances to more than 3,700 at peak. That part is easy to forget. A rehearsal tests two systems at once: the shop under peak load, and the platform watching it.
Two problems that pull against each other
A peak-load rehearsal creates two problems, and the obvious fix for one makes the other worse.
- Volume. At peak the edge produced close to 50 million spans a second. Sending all of it to Dash0 means about 43 GB/s of uncompressed OTLP leaving the customer's network, and more than a trillion spans written to SignalStore in one afternoon. Every span costs network transfer, ingest, disk and query time.
- Visibility. In their busiest week, the customer's engineers have to spot a failing checkout or a slow payment provider within minutes, then open the trace that shows where the request failed and why. Exact error rates and latency for every service, and complete traces for every error and slow request, are not up for trade.
Dropping data solves the first problem. Dropping the right data is the whole trick.
What matters
Most of the traffic in a load test looks the same: the same product pages, the same searches, the same checkout path, succeeding thousands of times a second. The ten-thousandth trace of a healthy product-page request tells an engineer nothing the first one did not. It still costs exactly as much to ship, store and scan.
What engineers need is narrower: exact request rates, error rates and latency for every service, plus the complete trace of every request that failed, ran slowly, or went through a flow someone cares about. Keep those in full. Drop the rest before it leaves the customer's network.
Sampling rules
A sampling rule is a condition that says which traces to keep. A few of them cover most setups:
-
Keep 2% of everything, as a baseline of routine traffic:
{ "kind": "probabilistic", "spec": { "rate": 0.02 } } -
Keep every trace that contains an error span:
{ "kind": "error", "spec": {} } -
Keep every trace that touches a specific service, here checkout:
{ "kind": "ottl", "spec": { "ottl": "resource.attributes[\"service.name\"] == \"checkout\"" } } -
Keep a fixed number of traces from a busy service, here up to 600 search traces a minute. The rate limit sits next to the conditions in the rule's
spec, and itsrateis always in traces per minute:{ "conditions": { "kind": "ottl", "spec": { "ottl": "resource.attributes[\"service.name\"] == \"search\"" } }, "rateLimit": { "rate": 600 } }
A percentage and a rate limit answer different questions. A percentage grows with the traffic: at three times the load, the 2% rule keeps three times as many traces. A rate limit is a fixed budget. 600 search traces a minute show what a typical search looks like on a quiet morning and at peak alike, and the rule cannot flood storage when traffic triples.
Rate limits also matter for rules that keep traces by what is in them. An error rule keeps every error trace, and during an outage that can be every trace. With a rate limit it still keeps errors every minute of the outage, just not a million copies of the same failure.
The full rule format and the UI are in Sample Traces in the Dash0 documentation.
Tail sampling
Tail sampling decides once a trace is complete. That is what lets a rule keep a trace because one of its spans failed or ran slowly, something a decision at the first span cannot know.
The catch is that a trace rarely lives in one place. Its spans come from many pods, and each pod sends to its nearest collector. The span that failed may sit on a different collector from the one that saw the trace start.
The common answer is a second tier of collectors behind a load-balancing exporter, which routes every span of a trace to the same instance. It works, but at this scale every span takes an extra network hop. Worse, each time the sampling tier scales out or a pod restarts, in-flight traces get split across instances that decide differently, at exactly the moment the load is highest.
Dash0 tail sampling does not route spans between collectors. It makes one keep-or-drop decision per trace across the whole fleet, and every collector applies it to the spans it holds. Kept spans leave the customer's network. Dropped spans never do. That is why the fleet could grow from about 1,000 to more than 3,700 collectors in the middle of the test without splitting a single trace.
Animation of tail sampling: traces flow from the checkout, catalog, cart and search services into three edge collectors in the customer network. Traces with an error, a slow request or a rule match travel on to SignalStore in Dash0. All other traces are dropped inside the customer network, so only about 3 percent reach Dash0 storage.
For how tail sampling works step by step, and the three rules that cover most teams, read Tail Sampling Traces on the Edge: Keep Every Error, Pay for 1% of the Rest.
Metrics from every span
Dropping 97% of spans raises an obvious question: what did the customer stop seeing? Had their dashboards been computed from the stored traces, the answer would be a lot. Request rates would read 40 times too low. Error rates would look far too high, because every error is kept and most successful requests are not. Latency percentiles would depend on which traces the rules happened to keep.
Signal-to-metrics fixes that. It derives metrics from spans on each edge collector before the sampler sees them, so the metrics count 100% of the traffic, including the 97% that is dropped a moment later.
- RED metrics, by default. Without any configuration, every collector records the request rate, error rate and latency distribution of each operation of each service, such as an HTTP route or an RPC method.
- Custom metrics. A signal-to-metrics rule turns any span pattern into a metric of its own, for example checkout latency per payment provider or failed searches per country. The customer ran more than 13,000 of these rules and built their Cyber Week dashboards and alerts on them.
Tail sampling decides which traces are worth storing. It does not change the numbers.
Aggregation
Deriving metrics at the edge has a side effect at this scale. Each collector sees only its own share of the traffic, so each one reports its own time series: one checkout latency histogram per collector, not one per service. With 3,700 collectors and 13,000 rules, that multiplies into millions of series, keyed by the collector instance that recorded them, a dimension nobody queries. No one wants the checkout error rate as seen by collector 3,117.
Time series aggregation removes that dimension in Dash0's ingest pipeline, before anything is stored. It works in two directions:
- Spatial. Per-collector attributes are dropped, and the series of all collectors merge into one per service, operation and remaining dimension.
- Temporal. Data points are combined into one point per 60-second interval.
Counts add up and histograms merge, so each aggregated series reports the total across the whole fleet, as if one collector had seen all the traffic.
The day in numbers
During the load test, 1.24 trillion spans reached the customer's edge, and 33.2 billion of them were stored. SignalControl in Dash0 shows the whole pipeline, from what was ingested to what was stored:
- Spans. Seven sampling rules dropped 1.2 trillion spans before they left the customer's network.
- Metrics from spans. Before any span was dropped, 13,520 signal-to-metrics rules turned the spans into 8.49 billion metric data points.
- Aggregation. The metric stream then carried 58.1 billion data points: 49.6 billion the customer sent, plus the 8.49 billion from signal-to-metrics. Aggregation merged away 8.24 billion of them, almost exactly what signal-to-metrics had added. The customer stored as many metric data points as they sent, and got RED and custom metrics for every span on top.
Here is the same day, hour by hour.
Test day started as an ordinary Wednesday. Until 09:00 UTC the collectors on the customer's edge saw the same span volume as on Monday and Tuesday. Then the customer started the ramp. Within two hours the edge went from about 14 million to 49.2 million spans a second, the peak 30-minute average at 11:00 UTC. Across the seven-hour test window it averaged 40.9 million, three times the 13.7 million of the two days before.

Now look at the same three days on the other side of the sampler, at what actually left the customer's network. The ramp is still there, but it is much flatter. The samplers kept 1.03 million spans a second in the test window, 1.75 times the baseline days for three times the traffic:

The gap between those two charts is where tail sampling did its work. A fixed percentage would have tripled along with the traffic. Instead, the share of spans kept fell as the traffic rose: on the baseline days the samplers kept 4.0% to 4.7% of spans during business hours, and under test load they kept 2.6%.

The extra traffic was what a load test produces: healthy requests for the same product pages and the same checkout path, repeated millions of times. The rules had nothing to keep in them, so they dropped them. Errors, slow requests and traces that matched a rule were still kept in full, because a rule selects a trace by what happened in it, not by how much traffic there is. Seven active rules made every keep decision of the day.
What keeping everything would have cost
Over the seven hours of the test, the edge received 1.03 trillion spans and sent 26.1 billion of them to Dash0. Had the customer kept everything, this is what the afternoon would have cost:

| 09:00 to 16:00 UTC | Keep 100% | Tail sampled | Factor |
|---|---|---|---|
| Spans leaving the customer network, average | 40.9 M/s | 1.03 M/s | 40× |
| Uncompressed OTLP egress, average | ~284 Gbit/s | ~7 Gbit/s | 40× |
| Compressed egress, 7 h | ~154 TB | ~3.9 TB | 40× |
| Network transfer at list price, 7 h | $1,500–7,700 | $40–200 | 40× |
| Spans written to SignalStore, 7 h | 1.03 T | 26.1 B | 40× |
| On disk, both replicas, 7 h | ~460 TB | ~11.6 TB | 40× |
The network is the cost the customer pays first, before a single span reaches Dash0. OTLP span payloads compressed about 5.8× in our receivers that day, so keeping 100% would have moved about 154 TB out of the customer's network in seven hours. Public cloud list prices for that traffic run from $0.01/GB for transfer within one region to about $0.05/GB for internet egress at the highest volume tier, or through a NAT gateway. At test load, a full day would cost $5,000 to $26,000 in transfer alone. Tail sampling brought the afternoon down to $40 to $200.
On a regular day, the same seven hours cost $520 to $2,600 in transfer without sampling, and $20 to $110 with it. The load test tripled the bill for keeping everything. With tail sampling it went up by less than $100:

The last two rows of the table, spans written to SignalStore and data on disk, are paid for further down the pipeline, after the data leaves the customer's network: our ingest pipeline, SignalStore CPU for inserts and merges, disk, and the time every query spends scanning rows. Keeping 100% would not have bought 40 times the insight. Errors, slow requests and rule matches are already in the 2.6%. The other 97.4% would have been the same successful request recorded millions of times.
Because the edge absorbed the multiplier, the backend saw an ordinary busy day rather than a load test. SignalStore stored 1.04 million spans a second in the test window, against 0.57 and 0.64 million on Monday and Tuesday, and peaked at 1.31 million at 14:40 UTC:

The short version. The customer tripled their span volume and Dash0 stored 1.75 times as much. All error, slow and rule-matched traces were kept. RED metrics, and the custom metrics from more than 13,000 signal-to-metrics rules, were computed from every span. The 97.4% that was dropped never left the customer's network, which saved about 150 TB of transfer in one afternoon.
Rehearsing your own peak
- Test the observability pipeline with the shop, not separately. The customer's collector fleet scaled from the usual 800 to 1,000 instances to more than 3,700 alongside the workload. That only shows up in a rehearsal of the real system.
- Decide at the edge. A multiplier absorbed before egress never reaches the network bill or the database. 3.9 TB left the network instead of 154 TB, and the backend saw 1.75× for 3× the traffic.
- Sample by content, not by percentage. A fixed 2.6% head sample would have dropped 97.4% of errors along with everything else. Rules that keep every error and every slow request let the share fall under load without losing the traces you need.
- Keep the rule set small. Seven rules decided what was kept out of 1.03 trillion spans. Each one is easy to reason about when the day comes.
The last rehearsal
On 12th November the customer ran their last load test before Cyber Week, and pushed past the first one. Their edge collectors peaked at 56.7 million spans a second, and 1.54 million a second reached Dash0, 2.7% of the traffic.

