Skip to content

Commit 8884fe6

Browse files
ymgytdjc
authored andcommitted
chore: fix clippy warning
1 parent 7c1fc95 commit 8884fe6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/layer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ where
646646
/// exceptions][conv].
647647
///
648648
/// * Only events without a message field (unnamed events) and at least one field with the name error
649-
/// are considered for mapping.
649+
/// are considered for mapping.
650650
///
651651
/// By default, these events are mapped.
652652
///
@@ -1693,7 +1693,7 @@ mod tests {
16931693
let context = tracing_error::SpanTrace::capture();
16941694

16951695
// This can cause a deadlock if `on_record` locks extensions while attributes are visited
1696-
span.record("exception", &tracing::field::debug(&context));
1696+
span.record("exception", tracing::field::debug(&context));
16971697
// This can cause a deadlock if `on_event` locks extensions while the event is visited
16981698
tracing::info!(exception = &tracing::field::debug(&context), "hello");
16991699
});

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
//! special fields are:
2121
//!
2222
//! * `otel.name`: Override the span name sent to OpenTelemetry exporters.
23-
//! Setting this field is useful if you want to display non-static information
24-
//! in your span name.
23+
//! Setting this field is useful if you want to display non-static information
24+
//! in your span name.
2525
//! * `otel.kind`: Set the span kind to one of the supported OpenTelemetry [span kinds].
2626
//! * `otel.status_code`: Set the span status code to one of the supported OpenTelemetry [span status codes].
2727
//! * `otel.status_message`: Set the span status message.

0 commit comments

Comments
 (0)