go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

The createTime metric is included by the useTime metric

Open hesining opened this issue 2 years ago • 2 comments

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

Detailed Description

Possible Implementation

hesining avatar Apr 25 '23 12:04 hesining