Skip to content

Commit

Permalink
fix: missing metrics result tag when passing options (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed May 26, 2023
1 parent 937caaa commit 945a57e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/otlp/otlpmetrics/otlpexporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
),
)
}
Expand All @@ -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))),
),
)
}
Expand Down

0 comments on commit 945a57e

Please sign in to comment.