chore: only test if feature is enabled

This commit is contained in:
2023-05-02 20:12:06 +02:00
parent f670989a46
commit 18b88502ec

View File

@@ -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<()> {