Commit c268b9e
committed
fix(execution): tune the event offload threshold to the observed distribution
Set the buffered-event offload threshold from production data rather than the
budget arithmetic alone. Across 111k executions, bytes-per-trace-span runs
~4.8 KB at p50, ~59 KB at p90 and ~960 KB at p99, and no execution came within
3 MB of the 64 MiB budget. 256 KiB sits between p90 and p99, so ordinary runs
stay fully inline and only the outlier tail is offloaded — ~4% of executions,
against ~9% at 64 KiB and ~15% at 32 KiB.
Offloading costs fidelity: a ref renders as a 256-character preview, and for
arrays and objects as a shape summary rather than contents. Tuning to the
distribution keeps that off the 95% of runs that never threatened the budget.1 parent 332657f commit c268b9e
2 files changed
Lines changed: 22 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
14 | 12 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
18 | 29 | | |
19 | | - | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
22 | 33 | | |
| |||
0 commit comments