From 90c79d7720901b5dd292d89ec5eb68d50db3ec85 Mon Sep 17 00:00:00 2001 From: Juraj Michalek Date: Sun, 19 Nov 2023 22:10:41 +0100 Subject: [PATCH] chore: fix pass metadata requests --- exporter/prometheusremotewriteexporter/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/prometheusremotewriteexporter/exporter.go b/exporter/prometheusremotewriteexporter/exporter.go index c9c849bcf5c7..cc7a65f294b1 100644 --- a/exporter/prometheusremotewriteexporter/exporter.go +++ b/exporter/prometheusremotewriteexporter/exporter.go @@ -142,7 +142,7 @@ func (prwe *prwExporter) PushMetrics(ctx context.Context, md pmetric.Metrics) er m = prometheusremotewrite.OtelMetricsToMetadata(md, prwe.exporterSettings.AddMetricSuffixes) } // Call export even if a conversion error, since there may be points that were successfully converted. - return multierr.Combine(err, prwe.handleExport(ctx, tsMap, nil)) + return multierr.Combine(err, prwe.handleExport(ctx, tsMap, m)) } }