From 18b88502ec388b9defc7c69e7ca88da365370875 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 2 May 2023 20:12:06 +0200 Subject: [PATCH] chore: only test if feature is enabled --- crates/dagger-sdk/examples/tracing/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/dagger-sdk/examples/tracing/main.rs b/crates/dagger-sdk/examples/tracing/main.rs index c79c1ab..aef6209 100644 --- a/crates/dagger-sdk/examples/tracing/main.rs +++ b/crates/dagger-sdk/examples/tracing/main.rs @@ -1,7 +1,9 @@ use dagger_sdk::HostDirectoryOpts; +#[cfg(feature = "otel")] use opentelemetry::global; use tracing::Level; +#[cfg(feature = "otel")] #[tracing::instrument] #[tokio::main] async fn main() -> eyre::Result<()> {