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