Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Dec 9, 2024
1 parent b746402 commit 11997df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions libs/telemetry/src/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ mod tests {
id: tracing::span::Id::from_u64(1).into(),
parent_id: None,
name: "test_span".into(),
start_time: SystemTime::UNIX_EPOCH.into(),
duration: Duration::from_secs(1).into(),
start_time: SystemTime::UNIX_EPOCH,
duration: Duration::from_secs(1),
kind: SpanKind::Internal,
attributes: HashMap::new(),
links: Vec::new(),
Expand All @@ -314,7 +314,7 @@ mod tests {
span_id: span.id,
name: "test_event",
level: LogLevel::Info,
timestamp: SystemTime::UNIX_EPOCH.into(),
timestamp: SystemTime::UNIX_EPOCH,
attributes: HashMap::new(),
};

Expand Down Expand Up @@ -357,8 +357,8 @@ mod tests {
id: tracing::span::Id::from_u64(1).into(),
parent_id: None,
name: "test_span".into(),
start_time: SystemTime::UNIX_EPOCH.into(),
duration: Duration::from_secs(1).into(),
start_time: SystemTime::UNIX_EPOCH,
duration: Duration::from_secs(1),
kind: SpanKind::Internal,
attributes: HashMap::new(),
links: Vec::new(),
Expand All @@ -368,7 +368,7 @@ mod tests {
span_id: span.id,
name: "test_event",
level: LogLevel::Info,
timestamp: SystemTime::UNIX_EPOCH.into(),
timestamp: SystemTime::UNIX_EPOCH,
attributes: HashMap::new(),
};

Expand Down
4 changes: 2 additions & 2 deletions libs/telemetry/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'a> SpanAttributeVisitor<'a> {
}
}

impl<'a> field::Visit for SpanAttributeVisitor<'a> {
impl field::Visit for SpanAttributeVisitor<'_> {
fn record_f64(&mut self, field: &field::Field, value: f64) {
self.span_builder.insert_attribute(field.name(), value.into())
}
Expand Down Expand Up @@ -209,7 +209,7 @@ impl<'a> EventAttributeVisitor<'a> {
}
}

impl<'a> field::Visit for EventAttributeVisitor<'a> {
impl field::Visit for EventAttributeVisitor<'_> {
fn record_f64(&mut self, field: &field::Field, value: f64) {
self.event_builder.insert_attribute(field.name(), value.into())
}
Expand Down

0 comments on commit 11997df

Please sign in to comment.