From ab395a348aefc5526e13969732d71beabf4f2ede Mon Sep 17 00:00:00 2001 From: Garvit Khandelwal Date: Mon, 28 Oct 2024 01:47:48 +0530 Subject: [PATCH] Added OTEL's meter provider Signed-off-by: Garvit Khandelwal --- pkg/telemetery/settings.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/telemetery/settings.go b/pkg/telemetery/settings.go index eef11f4a77f..29348ab7e53 100644 --- a/pkg/telemetery/settings.go +++ b/pkg/telemetery/settings.go @@ -6,6 +6,7 @@ package telemetery import ( "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/component/componentstatus" + "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/trace" "go.uber.org/zap" @@ -16,6 +17,7 @@ import ( type Setting struct { Logger *zap.Logger TracerProvider trace.TracerProvider + MeterProvider metric.MeterProvider Metrics metrics.Factory ReportStatus func(*componentstatus.Event) Host component.Host