From 6baa31a2734074217dac4433eee49ecef009570f Mon Sep 17 00:00:00 2001
From: Milos Gajdos <milosthegajdos@gmail.com>
Date: Mon, 4 Sep 2023 17:52:38 +0100
Subject: [PATCH] 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>
---
 registry/handlers/app.go | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/registry/handlers/app.go b/registry/handlers/app.go
index 7e0b418c..8d656113 100644
--- a/registry/handlers/app.go
+++ b/registry/handlers/app.go
@@ -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)