Skip to content

Commit a7ead1c

Browse files
committed
Remove OpenTelemetry metrics for now
1 parent b7d23d4 commit a7ead1c

File tree

3 files changed

+1
-42
lines changed

3 files changed

+1
-42
lines changed

internal/instruments.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

internal/pool/conn.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"sync/atomic"
88
"time"
99

10-
"github.com/go-redis/redis/v8/internal"
1110
"github.com/go-redis/redis/v8/internal/proto"
1211
)
1312

@@ -86,13 +85,7 @@ func (cn *Conn) WithWriter(
8685
return err
8786
}
8887

89-
if err := cn.bw.Flush(); err != nil {
90-
return err
91-
}
92-
93-
internal.WritesCounter.Add(ctx, 1)
94-
95-
return nil
88+
return cn.bw.Flush()
9689
}
9790

9891
func (cn *Conn) Close() error {

internal/pool/pool.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ func (p *ConnPool) dialConn(ctx context.Context, pooled bool) (*Conn, error) {
188188
return nil, err
189189
}
190190

191-
internal.NewConnectionsCounter.Add(ctx, 1)
192191
cn := NewConn(netConn)
193192
cn.pooled = pooled
194193
return cn, nil

0 commit comments

Comments
 (0)