From 8eb376615eb1255eec5f1ad4fd669aa75327020d Mon Sep 17 00:00:00 2001 From: Aaron Clawson Date: Fri, 25 Feb 2022 09:55:50 -0600 Subject: [PATCH] Update BatchSpanProcessor debug message (#2640) * update debug message * update changelog Co-authored-by: Aaron Clawson Co-authored-by: Tyler Yahn --- 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 c68d06b7d30..71b9781efb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - For tracestate's members, prepend the new element and remove the oldest one, which is over capacity (#2592) - 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. (#2640) ### Fixed 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.