1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Remove OpenTelemetry metrics for now (#1805)

This commit is contained in:
Vladimir Mihailenco
2021-06-30 13:40:23 +03:00
committed by GitHub
parent b7d23d446c
commit 27e2efb0af
5 changed files with 2 additions and 80 deletions

View File

@ -7,7 +7,6 @@ import (
"sync/atomic"
"time"
"github.com/go-redis/redis/v8/internal"
"github.com/go-redis/redis/v8/internal/proto"
)
@ -86,13 +85,7 @@ func (cn *Conn) WithWriter(
return err
}
if err := cn.bw.Flush(); err != nil {
return err
}
internal.WritesCounter.Add(ctx, 1)
return nil
return cn.bw.Flush()
}
func (cn *Conn) Close() error {