- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SetMeterProvider (0.14 sec)
-
pkg/monitoring/monitoring.go
if err != nil { return nil, err } opts := []metric.Option{metric.WithReader(prom)} opts = append(opts, knownMetrics.toHistogramViews()...) mp := metric.NewMeterProvider(opts...) otel.SetMeterProvider(mp) handler := promhttp.HandlerFor(gatherer, promhttp.HandlerOpts{}) return handler, nil } // A Metric collects numerical observations. type Metric interface {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 9.5K bytes - Viewed (0)