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

Method WithMeterProvider

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

WithMeterProvider sets the meter provider to use for creating metrics. If not provided, the global meter provider from otel.GetMeterProvider() will be used.

(provider metric.MeterProvider)

Source from the content-addressed store, hash-verified

207// WithMeterProvider sets the meter provider to use for creating metrics.
208// If not provided, the global meter provider from otel.GetMeterProvider() will be used.
209func (c *Config) WithMeterProvider(provider metric.MeterProvider) *Config {
210 c.MeterProvider = provider
211 return c
212}
213
214// WithMetricGroups sets which metric groups to register using bitwise flags.
215// You can combine multiple groups with the | operator.

Callers 2

TestMetricsUnderStressFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestMetricsUnderStressFunction · 0.64