Skip to content

Commit

Permalink
nit typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Dec 23, 2024
1 parent 0d97896 commit 0a82887
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-sdk/src/trace/span_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub trait SpanProcessor: Send + Sync + std::fmt::Debug {
///
/// Implementation should make sure shutdown can be called multiple times.
fn shutdown(&self) -> TraceResult<()>;
/// Set the resource for the log processor.
/// Set the resource for the span processor.
fn set_resource(&mut self, _resource: &Resource) {}
}

Expand Down Expand Up @@ -310,7 +310,7 @@ impl BatchSpanProcessor {
}
Err(RecvTimeoutError::Disconnected) => {
otel_error!(
name: "BatchLogProcessor.InternalError.ChannelDisconnected",
name: "BatchSpanProcessor.InternalError.ChannelDisconnected",
message = "Channel disconnected, shutting down processor thread."
);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<R: RuntimeChannel> SpanProcessor for BatchSpanProcessor<R> {
name: "BatchSpanProcessor.Shutdown",
dropped_spans = dropped_spans,
max_queue_size = max_queue_size,

Check warning on line 143 in opentelemetry-sdk/src/trace/span_processor_with_async_runtime.rs

View check run for this annotation

Codecov / codecov/patch

opentelemetry-sdk/src/trace/span_processor_with_async_runtime.rs#L142-L143

Added lines #L142 - L143 were not covered by tests
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."
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 BatchSpanProcessor. Consider increasing the queue size and/or decrease delay between intervals."
);
}

Expand Down

0 comments on commit 0a82887

Please sign in to comment.