Update tsdb/postings_for_matchers_cache.go

Co-authored-by: Charles Korn <charleskorn@users.noreply.github.com>
This commit is contained in:
Arve Knudsen 2023-10-30 13:57:42 +01:00
parent ca4cdeb1af
commit 6c0910a289

View file

@ -267,7 +267,7 @@ func (c *PostingsForMatchersCache) created(ctx context.Context, key string, ts t
sizeBytes: sizeBytes, sizeBytes: sizeBytes,
}) })
c.cachedBytes += sizeBytes c.cachedBytes += sizeBytes
span.AddEvent("recorded cached promise size", trace.WithAttributes( span.AddEvent("added cached value to expiry queue", trace.WithAttributes(
attribute.Stringer("ttl", c.ttl), attribute.Stringer("ttl", c.ttl),
attribute.String("key", key), attribute.String("key", key),
attribute.Stringer("timestamp", ts), attribute.Stringer("timestamp", ts),