From 945a57e3c219a713f3e7a798055967c86888dc7d Mon Sep 17 00:00:00 2001 From: Paul Nicolas Date: Fri, 26 May 2023 16:24:51 +0200 Subject: [PATCH] fix: missing metrics result tag when passing options (#339) --- libs/otlp/otlpmetrics/otlpexporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/otlp/otlpmetrics/otlpexporter.go b/libs/otlp/otlpmetrics/otlpexporter.go index 801d5656e..03868dd52 100644 --- a/libs/otlp/otlpmetrics/otlpexporter.go +++ b/libs/otlp/otlpmetrics/otlpexporter.go @@ -17,7 +17,7 @@ func LoadOTLPMetricsGRPCExporter(options ...otlpmetricgrpc.Option) (sdkmetric.Ex func ProvideOTLPMetricsGRPCExporter() fx.Option { return fx.Options( fx.Provide( - fx.Annotate(LoadOTLPMetricsGRPCExporter, fx.As(new(sdkmetric.Exporter))), + fx.Annotate(LoadOTLPMetricsGRPCExporter, fx.ParamTags(OTLPMetricsGRPCOptionsKey), fx.As(new(sdkmetric.Exporter))), ), ) } @@ -30,7 +30,7 @@ func LoadOTLPMetricsHTTPExporter(options ...otlpmetrichttp.Option) (sdkmetric.Ex func ProvideOTLPMetricsHTTPExporter() fx.Option { return fx.Options( fx.Provide( - fx.Annotate(LoadOTLPMetricsHTTPExporter, fx.As(new(sdkmetric.Exporter))), + fx.Annotate(LoadOTLPMetricsHTTPExporter, fx.ParamTags(OTLPMetricsHTTPOptionsKey), fx.As(new(sdkmetric.Exporter))), ), ) }