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

Method WithMetricGroups

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

WithMetricGroups sets which metric groups to register using bitwise flags. You can combine multiple groups with the | operator.

(groups MetricGroupFlags)

Source from the content-addressed store, hash-verified

214// WithMetricGroups sets which metric groups to register using bitwise flags.
215// You can combine multiple groups with the | operator.
216func (c *Config) WithMetricGroups(groups MetricGroupFlags) *Config {
217 c.MetricGroups = groups
218 return c
219}
220
221// WithIncludeCommands sets a command allow-list for metrics.
222func (c *Config) WithIncludeCommands(commands []string) *Config {

Callers 2

TestMetricsUnderStressFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestMetricsUnderStressFunction · 0.64