diff --git a/CHANGELOG.md b/CHANGELOG.md index acc6e0e0a9ae..a2a542678ad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - `k8seventsreceiver`: Add Api_version and resource_version (#8539) - `dynatraceexporter`: add multi-instance deployment note to README.md (#8848) - `resourcedetectionprocessor`: Add attribute allowlist (#8547) +- `datadogexporter`: Metrics payload data and Sketches payload data will be logged if collector is started in debug mode (#8929) ### 🛑 Breaking changes 🛑 diff --git a/exporter/datadogexporter/metrics_exporter.go b/exporter/datadogexporter/metrics_exporter.go index 3a19f4a6f5d4..3f5b33f0683e 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 { @@ -195,6 +196,7 @@ func (exp *metricsExporter) PushMetricsData(ctx context.Context, md pdata.Metric } if len(sl) > 0 { + exp.params.Logger.Debug("exporting sketches payload", zap.Any("sketches", sl)) err = multierr.Append( err, exp.retrier.DoWithRetries(ctx, func(ctx context.Context) error {