From 4b97969aafdd7d4aa84434a551b4f8cbc753ccaa Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Sun, 3 Mar 2024 22:33:55 +0000 Subject: [PATCH] verify autoconf example for updated resource --- examples/autoconf/build.gradle | 3 ++- exporters/auto/build.gradle | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/autoconf/build.gradle b/examples/autoconf/build.gradle index 610157fc..0159ee66 100644 --- a/examples/autoconf/build.gradle +++ b/examples/autoconf/build.gradle @@ -28,7 +28,7 @@ dependencies { runtimeOnly(libraries.opentelemetry_sdk_autoconf) runtimeOnly(libraries.opentelemetry_sdk) runtimeOnly project(':exporter-auto') - runtimeOnly project(':detector-resources') + runtimeOnly(libraries.opentelemetry_gcp_resources) } // Autoconfiguraation settings. @@ -36,6 +36,7 @@ dependencies { def autoconf_config = [ '-Dotel.traces.exporter=google_cloud_trace', '-Dotel.metrics.exporter=google_cloud_monitoring', + '-Dotel.logs.exporter=none', '-Dotel.java.global-autoconfigure.enabled=true', ] diff --git a/exporters/auto/build.gradle b/exporters/auto/build.gradle index 494df974..bb1ec8d9 100644 --- a/exporters/auto/build.gradle +++ b/exporters/auto/build.gradle @@ -34,7 +34,7 @@ dependencies { implementation(project(':exporter-trace')) { exclude group: 'io.opentelemetry' } - implementation(project(':detector-resources')) { + implementation(libraries.opentelemetry_gcp_resources) { exclude group: 'io.opentelemetry' } implementation(project(':propagators-gcp')) {