diff --git a/examples/distro/custom/build.gradle b/examples/distro/custom/build.gradle index 81746a884c5c..34074a7b72a3 100644 --- a/examples/distro/custom/build.gradle +++ b/examples/distro/custom/build.gradle @@ -11,7 +11,11 @@ dependencies { compileOnly("io.opentelemetry:opentelemetry-sdk:${versions.opentelemetry}") compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:${versions.opentelemetry}") compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api:${versions.opentelemetryJavaagentAlpha}") - implementation("io.opentelemetry.contrib:opentelemetry-samplers:1.15.0-alpha") + + implementation("io.opentelemetry.contrib:opentelemetry-samplers:1.15.0-alpha") { + exclude group: "io.opentelemetry", module: "opentelemetry-sdk" + exclude group: "io.opentelemetry", module: "opentelemetry-semconv" + } } tasks {