diff --git a/overwatch-rs/src/overwatch/handle.rs b/overwatch-rs/src/overwatch/handle.rs index 757afa4..2a964a9 100644 --- a/overwatch-rs/src/overwatch/handle.rs +++ b/overwatch-rs/src/overwatch/handle.rs @@ -6,9 +6,9 @@ use crate::overwatch::Services; use crate::services::ServiceData; use tokio::runtime::Handle; use tokio::sync::mpsc::Sender; -use tracing::{error, info}; #[cfg(feature = "instrumentation")] use tracing::instrument; +use tracing::{error, info}; // internal use crate::services::relay::Relay; diff --git a/overwatch-rs/src/overwatch/mod.rs b/overwatch-rs/src/overwatch/mod.rs index f7976a1..b7896da 100644 --- a/overwatch-rs/src/overwatch/mod.rs +++ b/overwatch-rs/src/overwatch/mod.rs @@ -15,9 +15,9 @@ use tokio::runtime::{Handle, Runtime}; use tokio::sync::mpsc::Receiver; use tokio::sync::oneshot; use tokio::task::JoinHandle; -use tracing::{error, info}; #[cfg(feature = "instrumentation")] use tracing::instrument; +use tracing::{error, info}; // internal use crate::overwatch::commands::{ diff --git a/overwatch-rs/src/services/relay.rs b/overwatch-rs/src/services/relay.rs index a2d41af..7a678c1 100644 --- a/overwatch-rs/src/services/relay.rs +++ b/overwatch-rs/src/services/relay.rs @@ -181,8 +181,7 @@ impl Relay { self.overwatch_handle.send(relay_command).await; } - #[cfg_attr(feature = "instrumentation", instrument(skip_all, err(Debug))) - ] + #[cfg_attr(feature = "instrumentation", instrument(skip_all, err(Debug)))] async fn handle_relay_response( &self, receiver: oneshot::Receiver,