go-redis
go-redis copied to clipboard
The createTime metric is included by the useTime metric
Issue tracker is used for reporting bugs and discussing new features. Please use stackoverflow for supporting issues.
Expected Behavior
I want they can be seperated
Current Behavior
the createTime metric is included by the useTime metric, it doesn't match the description
useTime, err := conf.meter.Float64Histogram(
"db.client.connections.use_time",
instrument.WithDescription("The time between borrowing a connection and returning it to the pool."),
instrument.WithUnit("ms"),
)
Possible Solution
the useTime metric subtract the dial time
Steps to Reproduce
Context (Environment)
GoRedis client version: v9