From c577c50f01b857991364692ac28c965cec515985 Mon Sep 17 00:00:00 2001 From: Michael Butler Date: Wed, 4 Oct 2023 20:57:50 -0400 Subject: [PATCH] streamproducer: add verbose logging to span config event stream It was helpful while looking into #111541 Release note: None --- pkg/ccl/streamingccl/streamproducer/span_config_event_stream.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/ccl/streamingccl/streamproducer/span_config_event_stream.go b/pkg/ccl/streamingccl/streamproducer/span_config_event_stream.go index 4f56f60909ee..113839ddde56 100644 --- a/pkg/ccl/streamingccl/streamproducer/span_config_event_stream.go +++ b/pkg/ccl/streamingccl/streamproducer/span_config_event_stream.go @@ -268,7 +268,9 @@ func (s *spanConfigEventStream) streamLoop(ctx context.Context) error { batcher.addSpanConfigs(bufferedEvents, update.Timestamp) bufferedEvents = bufferedEvents[:0] if pacer.shouldCheckpoint(update.Timestamp, true) || fromFullScan { + log.VEventf(ctx, 2, "checkpointing span config stream at %s", update.Timestamp.GoTime()) if batcher.getSize() > 0 { + log.VEventf(ctx, 2, "sending %d span config events", len(batcher.batch.SpanConfigs)) if err := s.flushEvent(ctx, &streampb.StreamEvent{Batch: &batcher.batch}); err != nil { return err }