From 3ac430f10efa5059495d03959319fd7309c678fe Mon Sep 17 00:00:00 2001 From: Keerthi Motupalli Date: Tue, 29 Mar 2022 15:48:06 -0400 Subject: [PATCH] added debug flag to print metrics payload --- exporter/datadogexporter/metrics_exporter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exporter/datadogexporter/metrics_exporter.go b/exporter/datadogexporter/metrics_exporter.go index 3a19f4a6f5d4..19fe6fb5e848 100644 --- a/exporter/datadogexporter/metrics_exporter.go +++ b/exporter/datadogexporter/metrics_exporter.go @@ -186,6 +186,7 @@ func (exp *metricsExporter) PushMetricsData(ctx context.Context, md pdata.Metric err = nil if len(ms) > 0 { + exp.params.Logger.Debug("exporting payload", zap.Any("metric", ms)) err = multierr.Append( err, exp.retrier.DoWithRetries(ctx, func(context.Context) error {