diff --git a/util/clientmetric/clientmetric.go b/util/clientmetric/clientmetric.go index e31f26aa2..a516ed5c1 100644 --- a/util/clientmetric/clientmetric.go +++ b/util/clientmetric/clientmetric.go @@ -255,6 +255,10 @@ func EncodeLogTailMetricsDelta() string { return enc.buf.String() } +func ResetLastDeltaForTest() { + lastDelta = time.Time{} +} + var deltaPool = &sync.Pool{ New: func() any { return new(deltaEncBuf)