Skip to content

Commit

Permalink
chore: drop unnecessary prefix (#41)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun authored Aug 12, 2024
1 parent 8f7d8c7 commit 7f442be
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 7f442be

Please sign in to comment.