Skip to content

Commit 900f200

Browse files
committed
default implemention for LogRecord::set_event_name
1 parent 87d45c0 commit 900f200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry/src/logs/record.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use std::{borrow::Cow, collections::HashMap, time::SystemTime};
44
/// SDK implemented trait for managing log records
55
pub trait LogRecord {
66
/// Sets the `event_name` of a record
7-
fn set_event_name<T>(&mut self, name: T)
7+
fn set_event_name<T>(&mut self, _name: T)
88
where
9-
T: Into<Cow<'static, str>>;
9+
T: Into<Cow<'static, str>> {}
1010

1111
/// Sets the time when the event occurred measured by the origin clock, i.e. the time at the source.
1212
fn set_timestamp(&mut self, timestamp: SystemTime);

0 commit comments

Comments
 (0)