mirror of
https://github.com/distribution/distribution.git
synced 2025-07-10 22:05:21 +00:00
Merge pull request #4041 from milosgajdos/duplicate-code
Remove duplicate code that instruments Redis otel
This commit is contained in:
commit
6787846b9d
@ -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