1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-06-25 00:16:49 +02:00

simplifies error handling, uses internal logger by default

This commit is contained in:
Aaron Clawson
2021-11-17 16:17:04 +00:00
committed by GitHub
parent 8d0b098602
commit 8b210d20d4
5 changed files with 108 additions and 130 deletions

View File

@ -238,7 +238,7 @@ func (bsp *batchSpanProcessor) exportSpans(ctx context.Context) error {
}
if l := len(bsp.batch); l > 0 {
debug.Log.V(5).Info("exporting spans", "count", len(bsp.batch))
debug.Info("exporting spans", "count", len(bsp.batch))
err := bsp.e.ExportSpans(ctx, bsp.batch)
// A new batch is always created after exporting, even if the batch failed to be exported.