Commit c1e5bcd
[CONTINT-5217][CONTINT-5218][CONTINT-5219][CONTINT-5220] Remove IncludePreviousSample to preserve one-shot stats behavior
Drop IncludePreviousSample from ContainerStats call. This option makes
the daemon collect two samples one second apart before returning, adding
~1s latency per container during metric collection. Since the codebase
never uses PreCPUStats/PreRead, this delay was unnecessary. Using the
zero-value options preserves the original ContainerStatsOneShot behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f923a33 commit c1e5bcd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
0 commit comments