From dcf97a5096272fcde240ccbf632d1b91ae8a1bf3 Mon Sep 17 00:00:00 2001 From: Aaron Clawson Date: Thu, 24 Feb 2022 13:30:28 +0000 Subject: [PATCH 1/2] update debug message --- CHANGELOG.md | 1 + sdk/trace/batch_span_processor.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b2bcfe09bf..1e1828ecf7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Changed - Add event and link drop counts to the exported data from the `oltptrace` exporter. (#2601) +- Change the debug message from the `sdk/trace.BatchSpanProcessor` to reflect the count is cumulative. (#????) ## [1.4.1] - 2022-02-16 diff --git a/sdk/trace/batch_span_processor.go b/sdk/trace/batch_span_processor.go index 67e2732c3c7..56847d9ccba 100644 --- a/sdk/trace/batch_span_processor.go +++ b/sdk/trace/batch_span_processor.go @@ -250,7 +250,7 @@ func (bsp *batchSpanProcessor) exportSpans(ctx context.Context) error { } if l := len(bsp.batch); l > 0 { - global.Debug("exporting spans", "count", len(bsp.batch), "dropped", atomic.LoadUint32(&bsp.dropped)) + global.Debug("exporting spans", "count", len(bsp.batch), "total_dropped", atomic.LoadUint32(&bsp.dropped)) err := bsp.e.ExportSpans(ctx, bsp.batch) // A new batch is always created after exporting, even if the batch failed to be exported. From 31dadd9b5389dfe0cc3e765572fa1a19cbafddef Mon Sep 17 00:00:00 2001 From: Aaron Clawson Date: Thu, 24 Feb 2022 13:32:29 +0000 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e1828ecf7d..6c954ad81ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Changed - Add event and link drop counts to the exported data from the `oltptrace` exporter. (#2601) -- Change the debug message from the `sdk/trace.BatchSpanProcessor` to reflect the count is cumulative. (#????) +- Change the debug message from the `sdk/trace.BatchSpanProcessor` to reflect the count is cumulative. (#2640) ## [1.4.1] - 2022-02-16