diff --git a/vmm/common/src/tracer.rs b/vmm/common/src/tracer.rs index c76fb634..e18c2973 100644 --- a/vmm/common/src/tracer.rs +++ b/vmm/common/src/tracer.rs @@ -14,8 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -use opentelemetry::sdk::trace::Tracer; -use opentelemetry::sdk::{trace, Resource}; +use opentelemetry::sdk::{trace, trace::Tracer, Resource}; use tracing_subscriber::EnvFilter; pub fn init_otlp_tracer(otlp_service_name: &str) -> anyhow::Result { diff --git a/vmm/sandbox/src/bin/cloud_hypervisor/main.rs b/vmm/sandbox/src/bin/cloud_hypervisor/main.rs index 193ba21e..11a6176c 100644 --- a/vmm/sandbox/src/bin/cloud_hypervisor/main.rs +++ b/vmm/sandbox/src/bin/cloud_hypervisor/main.rs @@ -17,8 +17,7 @@ limitations under the License. use clap::Parser; use opentelemetry::global; use tracing::{info, info_span}; -use tracing_subscriber::Layer; -use tracing_subscriber::{layer::SubscriberExt, Registry}; +use tracing_subscriber::{layer::SubscriberExt, Layer, Registry}; use vmm_common::tracer::{init_logger_filter, init_otlp_tracer}; use vmm_sandboxer::{ args, diff --git a/vmm/sandbox/src/bin/qemu/main.rs b/vmm/sandbox/src/bin/qemu/main.rs index a9c9bd23..ec217567 100644 --- a/vmm/sandbox/src/bin/qemu/main.rs +++ b/vmm/sandbox/src/bin/qemu/main.rs @@ -17,8 +17,7 @@ limitations under the License. use clap::Parser; use opentelemetry::global; use tracing::{info, info_span}; -use tracing_subscriber::Layer; -use tracing_subscriber::{layer::SubscriberExt, Registry}; +use tracing_subscriber::{layer::SubscriberExt, Layer, Registry}; use vmm_common::tracer::{init_logger_filter, init_otlp_tracer}; use vmm_sandboxer::{ args, diff --git a/vmm/sandbox/src/bin/stratovirt/main.rs b/vmm/sandbox/src/bin/stratovirt/main.rs index 395347e1..3ba6b627 100644 --- a/vmm/sandbox/src/bin/stratovirt/main.rs +++ b/vmm/sandbox/src/bin/stratovirt/main.rs @@ -17,8 +17,7 @@ limitations under the License. use clap::Parser; use opentelemetry::global; use tracing::{info, info_span}; -use tracing_subscriber::{layer::SubscriberExt, Registry}; -use tracing_subscriber::Layer; +use tracing_subscriber::{layer::SubscriberExt, Layer, Registry}; use vmm_common::tracer::{init_logger_filter, init_otlp_tracer}; use vmm_sandboxer::{ args, diff --git a/vmm/sandbox/src/client.rs b/vmm/sandbox/src/client.rs index 47f7e08d..20e1583c 100644 --- a/vmm/sandbox/src/client.rs +++ b/vmm/sandbox/src/client.rs @@ -42,11 +42,11 @@ use tokio::{ net::UnixStream, time::timeout, }; +use tracing::{debug, error}; use ttrpc::{ context::with_timeout, r#async::{Client, TtrpcContext}, }; -use tracing::{debug, error}; use vmm_common::api::{ sandbox::{CheckRequest, SetupSandboxRequest, SyncClockPacket}, sandbox_ttrpc::SandboxServiceClient, diff --git a/vmm/task/src/sandbox.rs b/vmm/task/src/sandbox.rs index f3c12a3d..2cdc9900 100644 --- a/vmm/task/src/sandbox.rs +++ b/vmm/task/src/sandbox.rs @@ -29,7 +29,6 @@ use nix::{ }; use tokio::fs::File; use tracing::{debug, warn}; - use vmm_common::{ mount::{mount, unmount}, storage::{Storage, DRIVERBLKTYPE, DRIVEREPHEMERALTYPE, DRIVERSCSITYPE},