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
Copy file name to clipboardExpand all lines: opentelemetry-sdk/src/logs/log_processor.rs
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -554,6 +554,16 @@ impl<R: RuntimeChannel> LogProcessor for BatchLogProcessorWithAsyncRuntime<R> {
554
554
}
555
555
556
556
fnshutdown(&self) -> LogResult<()>{
557
+
let dropped_logs = self.dropped_logs_count.load(Ordering::Relaxed);
558
+
let max_queue_size = self.max_queue_size;
559
+
if dropped_logs > 0{
560
+
otel_warn!(
561
+
name:"BatchLogProcessor.LogsDropped",
562
+
dropped_logs_count = dropped_logs,
563
+
max_queue_size = max_queue_size,
564
+
message = "Logs were dropped due to a queue being full or other error. The count represents the total count of log records dropped in the lifetime of this BatchLogProcessor. Consider increasing the queue size and/or decrease delay between intervals."
0 commit comments