1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/metrics/fake.go
Charles-Edouard Brétéché b4e863e075
chore: bump otel deps (#7580)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-06-19 09:09:08 +00:00

16 lines
329 B
Go

package metrics
import (
"github.com/kyverno/kyverno/pkg/config"
"go.opentelemetry.io/otel"
"k8s.io/klog/v2"
)
func NewFakeMetricsConfig() *MetricsConfig {
mc := &MetricsConfig{
config: config.NewDefaultMetricsConfiguration(),
Log: klog.NewKlogr(),
}
_ = mc.initializeMetrics(otel.GetMeterProvider())
return mc
}