Skip to content

Commit

Permalink
chore: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt authored and djc committed Sep 10, 2024
1 parent 7c1fc95 commit 8884fe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ where
/// exceptions][conv].
///
/// * Only events without a message field (unnamed events) and at least one field with the name error
/// are considered for mapping.
/// are considered for mapping.
///
/// By default, these events are mapped.
///
Expand Down Expand Up @@ -1693,7 +1693,7 @@ mod tests {
let context = tracing_error::SpanTrace::capture();

// This can cause a deadlock if `on_record` locks extensions while attributes are visited
span.record("exception", &tracing::field::debug(&context));
span.record("exception", tracing::field::debug(&context));
// This can cause a deadlock if `on_event` locks extensions while the event is visited
tracing::info!(exception = &tracing::field::debug(&context), "hello");
});
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
//! special fields are:
//!
//! * `otel.name`: Override the span name sent to OpenTelemetry exporters.
//! Setting this field is useful if you want to display non-static information
//! in your span name.
//! Setting this field is useful if you want to display non-static information
//! in your span name.
//! * `otel.kind`: Set the span kind to one of the supported OpenTelemetry [span kinds].
//! * `otel.status_code`: Set the span status code to one of the supported OpenTelemetry [span status codes].
//! * `otel.status_message`: Set the span status message.
Expand Down

0 comments on commit 8884fe6

Please sign in to comment.