mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
Remove duplicate code that instruments Redis OTLP
This was somehow overlooked in https://github.com/distribution/distribution/pull/4019 Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
parent
9790bc806c
commit
6baa31a273
@ -498,11 +498,6 @@ func (app *App) configureRedis(cfg *configuration.Configuration) {
|
||||
|
||||
app.redis = app.createPool(cfg.Redis)
|
||||
|
||||
// Enable tracing instrumentation.
|
||||
if err := redisotel.InstrumentTracing(app.redis); err != nil {
|
||||
dcontext.GetLogger(app).Errorf("failed to instrument tracing on redis: %v", err)
|
||||
}
|
||||
|
||||
// Enable metrics instrumentation.
|
||||
if err := redisotel.InstrumentMetrics(app.redis); err != nil {
|
||||
dcontext.GetLogger(app).Errorf("failed to instrument metrics on redis: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user