mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Remove unnecessary event attributes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
2aabf7cc2c
commit
7c313be3b5
|
@ -238,7 +238,6 @@ func (c *PostingsForMatchersCache) created(ctx context.Context, key string, ts t
|
||||||
if c.ttl <= 0 {
|
if c.ttl <= 0 {
|
||||||
span.AddEvent("deleting cached promise since c.ttl <= 0", trace.WithAttributes(
|
span.AddEvent("deleting cached promise since c.ttl <= 0", trace.WithAttributes(
|
||||||
attribute.Stringer("ttl", c.ttl),
|
attribute.Stringer("ttl", c.ttl),
|
||||||
attribute.String("key", key),
|
|
||||||
))
|
))
|
||||||
c.calls.Delete(key)
|
c.calls.Delete(key)
|
||||||
return
|
return
|
||||||
|
@ -255,7 +254,6 @@ func (c *PostingsForMatchersCache) created(ctx context.Context, key string, ts t
|
||||||
c.cachedBytes += sizeBytes
|
c.cachedBytes += sizeBytes
|
||||||
span.AddEvent("added cached value to expiry queue", 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.Stringer("timestamp", ts),
|
attribute.Stringer("timestamp", ts),
|
||||||
attribute.Int64("size in bytes", sizeBytes),
|
attribute.Int64("size in bytes", sizeBytes),
|
||||||
attribute.Int64("cached bytes", c.cachedBytes),
|
attribute.Int64("cached bytes", c.cachedBytes),
|
||||||
|
|
Loading…
Reference in a new issue