redis / rueidis

A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MetricAttrs() does not add KeyValue attributes to the metrics

DestroyerAlpha opened this issue · comments

How have I set up my client?

cl, err = rueidisotel.NewClient(rueidisCfg, rueidisotel.WithTracerProvider(otel.GetTraceProvider()),rueidisotel.WithMeterProvider(metric.NewMeterProvider(metric.WithReader(prometheusExporter))),rueidisotel.MetricAttrs(attribute.String("key", "value")))

Hi @DestroyerAlpha,

Indeed, rueidisotel doesn't respect MetricAttrs. That will be fixed in the next version.