From c787569bdc6189bd9bafe79e3a8ad414e6a12551 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 2 May 2023 20:19:01 +0200 Subject: [PATCH] chore: add default main --- crates/dagger-sdk/examples/tracing/main.rs | 3 +++ 1 file changed, 3 insertions(+) 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]