diff --git a/crates/dagger-sdk/examples/tracing/main.rs b/crates/dagger-sdk/examples/tracing/main.rs index aef6209..cf697c3 100644 --- a/crates/dagger-sdk/examples/tracing/main.rs +++ b/crates/dagger-sdk/examples/tracing/main.rs @@ -3,6 +3,9 @@ use dagger_sdk::HostDirectoryOpts; use opentelemetry::global; use tracing::Level; +#[cfg(not(feature = "otel"))] +fn main() {} + #[cfg(feature = "otel")] #[tracing::instrument] #[tokio::main]