Skip to content

Commit

Permalink
Init memberlist codecs: append to preconfigured codecs if any (#4445)
Browse files Browse the repository at this point in the history
  • Loading branch information
yvrhdn authored Dec 13, 2024
1 parent a816e7d commit 4e8a96f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/tempo/app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
kitlog "github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/dns"
"github.com/grafana/dskit/kv/codec"
"github.com/grafana/dskit/kv/memberlist"
"github.com/grafana/dskit/middleware"
"github.com/grafana/dskit/modules"
Expand Down Expand Up @@ -475,10 +474,10 @@ func (t *App) initStore() (services.Service, error) {
func (t *App) initMemberlistKV() (services.Service, error) {
reg := prometheus.DefaultRegisterer
t.cfg.MemberlistKV.MetricsNamespace = metricsNamespace
t.cfg.MemberlistKV.Codecs = []codec.Codec{
t.cfg.MemberlistKV.Codecs = append(t.cfg.MemberlistKV.Codecs,
ring.GetCodec(),
usagestats.JSONCodec,
}
)

dnsProviderReg := prometheus.WrapRegistererWithPrefix(
"tempo_",
Expand Down

0 comments on commit 4e8a96f

Please sign in to comment.