You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -494,17 +494,17 @@ impl SpanProcessor for BatchSpanProcessor {
494
494
message = "BatchSpanProcessor dropped a Span due to queue full/internal errors. No further internal log will be emitted for further drops until Shutdown. During Shutdown time, a log will be emitted with exact count of total Spans dropped.");
495
495
}
496
496
}
497
-
// At this point, sending the log record to the data channel was successful.
497
+
// At this point, sending the span to the data channel was successful.
498
498
// Increment the current batch size and check if it has reached the max export batch size.
// Check if the a control message for exporting logs is already sent to the worker thread.
502
-
// If not, send a control message to export logs.
501
+
// Check if the a control message for exporting spans is already sent to the worker thread.
502
+
// If not, send a control message to export spans.
503
503
// `export_span_message_sent` is set to false ONLY when the worker thread has processed the control message.
504
504
505
505
if !self.export_span_message_sent.load(Ordering::Relaxed){
506
506
// This is a cost-efficient check as atomic load operations do not require exclusive access to cache line.
507
-
// Perform atomic swap to `export_log_message_sent` ONLY when the atomic load operation above returns false.
507
+
// Perform atomic swap to `export_span_message_sent` ONLY when the atomic load operation above returns false.
508
508
// Atomic swap/compare_exchange operations require exclusive access to cache line on most processor architectures.
509
509
// We could have used compare_exchange as well here, but it's more verbose than swap.
510
510
if !self.export_span_message_sent.swap(true,Ordering::Relaxed){
@@ -516,7 +516,7 @@ impl SpanProcessor for BatchSpanProcessor {
516
516
}
517
517
Err(_err) => {
518
518
// TODO: Log error
519
-
// If the control message could not be sent, reset the `export_log_message_sent` flag.
519
+
// If the control message could not be sent, reset the `export_span_message_sent` flag.
520
520
self.export_span_message_sent
521
521
.store(false,Ordering::Relaxed);
522
522
}
@@ -550,7 +550,7 @@ impl SpanProcessor for BatchSpanProcessor {
550
550
let max_queue_size = self.max_queue_size;
551
551
if dropped_spans > 0{
552
552
otel_warn!(
553
-
name:"BatchSpanProcessor.LogsDropped",
553
+
name:"BatchSpanProcessor.SpansDropped",
554
554
dropped_span_count = dropped_spans,
555
555
max_queue_size = max_queue_size,
556
556
message = "Spans were dropped due to a queue being full or other error. The count represents the total count of spans dropped in the lifetime of this BatchSpanProcessor. Consider increasing the queue size and/or decrease delay between intervals."
0 commit comments