chore: only test if feature is enabled

This commit is contained in:
Kasper Juul Hermansen 2023-05-02 20:12:06 +02:00
parent f670989a46
commit 18b88502ec
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

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