MCPcopy
hub / github.com/redis/go-redis / defaultHistogramBuckets

Function defaultHistogramBuckets

extra/redisotel-native/config.go:82–96  ·  view source on GitHub ↗

defaultHistogramBuckets returns the default histogram buckets for all duration metrics. These buckets are designed to capture typical Redis operation and connection latencies: - Sub-millisecond: 0.0001s (0.1ms), 0.0005s (0.5ms) - Milliseconds: 0.001s (1ms), 0.005s (5ms), 0.01s (10ms), 0.05s (50ms),

()

Source from the content-addressed store, hash-verified

80// - db.client.connection.wait_time (waiting for connection from pool)
81// - redis.client.stream.processing_duration (stream message processing)
82func defaultHistogramBuckets() []float64 {
83 return []float64{
84 0.0001, // 0.1ms
85 0.0005, // 0.5ms
86 0.001, // 1ms
87 0.005, // 5ms
88 0.01, // 10ms
89 0.05, // 50ms
90 0.1, // 100ms
91 0.5, // 500ms
92 1.0, // 1s
93 5.0, // 5s
94 10.0, // 10s
95 }
96}
97
98// MetricGroupFlags represents metric groups as bitwise flags
99type MetricGroupFlags uint32

Callers 1

NewConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected