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

Method isCommandIncluded

extra/redisotel-native/config.go:57–68  ·  view source on GitHub ↗
(command string)

Source from the content-addressed store, hash-verified

55}
56
57func (c *config) isCommandIncluded(command string) bool {
58 command = strings.ToLower(command)
59 if c.excludeCommands != nil && c.excludeCommands[command] {
60 return false
61 }
62
63 if c.includeCommands != nil {
64 return c.includeCommands[command]
65 }
66
67 return true
68}
69
70// defaultHistogramBuckets returns the default histogram buckets for all duration metrics.
71// These buckets are designed to capture typical Redis operation and connection latencies:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected