Skip to content

Commit

Permalink
chore: drop unnecessary prefix
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Aug 12, 2024
1 parent 8f7d8c7 commit 19957a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/append/opentelemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use crate::append::Append;

/// The communication protocol to opentelemetry that used when exporting data.
///
/// This is a logical re-exported [`opentelemetry_otlp::Protocol`] to avoid version lock-in to
/// This is a logical re-exported [`Protocol`] to avoid version lock-in to
/// `opentelemetry_otlp`.
#[non_exhaustive]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
Expand Down Expand Up @@ -109,7 +109,7 @@ impl Append for OpentelemetryLog {
let provider = self.provider.clone();
let logger = provider.library_logger(self.library.clone());

let mut record = opentelemetry_sdk::logs::LogRecord::default();
let mut record = LogRecord::default();
record.observed_timestamp = Some(SystemTime::now());
record.severity_number = Some(log_level_to_otel_severity(log_record.level()));
record.severity_text = Some(log_record.level().as_str().into());
Expand Down

0 comments on commit 19957a4

Please sign in to comment.