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
message = "BatchLogProcessor dropped a LogRecord due to queue full/internal errors. No further log will be emitted for further drops until Shutdown. During Shutdown time, a log will be emitted with exact count of total logs dropped.");
187
+
}
180
188
}
181
189
}
182
190
@@ -192,6 +200,17 @@ impl<R: RuntimeChannel> LogProcessor for BatchLogProcessor<R> {
192
200
}
193
201
194
202
fnshutdown(&self) -> LogResult<()>{
203
+
let dropped_logs = self.dropped_logs_count.load(Ordering::Relaxed);
204
+
let max_queue_size = self.max_queue_size;
205
+
if dropped_logs > 0{
206
+
otel_warn!(
207
+
name:"BatchLogProcessor.LogsDropped",
208
+
dropped_logs_count = dropped_logs,
209
+
max_queue_size = max_queue_size,
210
+
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."
message = "Beginning to drop span messages due to full/internal errors. No further log will be emitted for further drops until Shutdown. During Shutdown time, a log will be emitted with exact count of total spans dropped.");
266
+
}
257
267
}
258
268
}
259
269
@@ -269,6 +279,17 @@ impl<R: RuntimeChannel> SpanProcessor for BatchSpanProcessor<R> {
269
279
}
270
280
271
281
fnshutdown(&self) -> TraceResult<()>{
282
+
let dropped_spans = self.dropped_spans_count.load(Ordering::Relaxed);
283
+
let max_queue_size = self.max_queue_size;
284
+
if dropped_spans > 0{
285
+
otel_warn!(
286
+
name:"BatchSpanProcessor.Shutdown",
287
+
dropped_spans = dropped_spans,
288
+
max_queue_size = max_queue_size,
289
+
message = "Spans were dropped due to a full or closed queue. The count represents the total count of span records dropped in the lifetime of the BatchLogProcessor. Consider increasing the queue size and/or decrease delay between intervals."
0 commit comments