(command string)
| 55 | } |
| 56 | |
| 57 | func (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: |
no outgoing calls
no test coverage detected