Skip to content

Commit 033835d

Browse files
authored
Merge branch 'main' into otel-otlp-http-timeout
2 parents 1b68aea + dde68a0 commit 033835d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

opentelemetry-sdk/src/logs/log_processor.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl LogProcessor for BatchLogProcessor {
343343
// a log, emit a warning.
344344
if self.dropped_logs_count.fetch_add(1, Ordering::Relaxed) == 0 {
345345
otel_warn!(name: "BatchLogProcessor.LogDroppingStarted",
346-
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.");
346+
message = "BatchLogProcessor dropped a LogRecord due to queue full. 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.");
347347
}
348348
}
349349
Err(mpsc::TrySendError::Disconnected(_)) => {
@@ -376,9 +376,9 @@ impl LogProcessor for BatchLogProcessor {
376376
// If the control message could not be sent, emit a warning.
377377
otel_debug!(
378378
name: "BatchLogProcessor.ForceFlush.ControlChannelFull",
379-
message = "Control message to flush the worker thread could not be sent as the control channel is full. This can occur if user repeatedily calls force_flush without finishing the previous call."
379+
message = "Control message to flush the worker thread could not be sent as the control channel is full. This can occur if user repeatedily calls force_flush/shutdown without finishing the previous call."
380380
);
381-
LogResult::Err(LogError::Other("ForceFlush cannot be performed as Control channel is full. This can occur if user repeatedily calls force_flush without finishing the previous call.".into()))
381+
LogResult::Err(LogError::Other("ForceFlush cannot be performed as Control channel is full. This can occur if user repeatedily calls force_flush/shutdown without finishing the previous call.".into()))
382382
}
383383
Err(mpsc::TrySendError::Disconnected(_)) => {
384384
// Given background thread is the only receiver, and it's
@@ -404,7 +404,7 @@ impl LogProcessor for BatchLogProcessor {
404404
name: "BatchLogProcessor.LogsDropped",
405405
dropped_logs_count = dropped_logs,
406406
max_queue_size = max_queue_size,
407-
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."
407+
message = "Logs were dropped due to a queue being full. 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."
408408
);
409409
}
410410

@@ -442,9 +442,9 @@ impl LogProcessor for BatchLogProcessor {
442442
// If the control message could not be sent, emit a warning.
443443
otel_debug!(
444444
name: "BatchLogProcessor.Shutdown.ControlChannelFull",
445-
message = "Control message to shutdown the worker thread could not be sent as the control channel is full. This can occur if user repeatedily calls force_flush without finishing the previous call."
445+
message = "Control message to shutdown the worker thread could not be sent as the control channel is full. This can occur if user repeatedily calls force_flush/shutdown without finishing the previous call."
446446
);
447-
LogResult::Err(LogError::Other("Shutdown cannot be performed as Control channel is full. This can occur if user repeatedily calls force_flush without finishing the previous call.".into()))
447+
LogResult::Err(LogError::Other("Shutdown cannot be performed as Control channel is full. This can occur if user repeatedily calls force_flush/shutdown without finishing the previous call.".into()))
448448
}
449449
Err(mpsc::TrySendError::Disconnected(_)) => {
450450
// Given background thread is the only receiver, and it's

0 commit comments

Comments
 (0)