Skip to content

Commit

Permalink
verify autoconf example for updated resource
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Mar 3, 2024
1 parent 97d0911 commit 4b97969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/autoconf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ 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.
// See: https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure
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',
]

Expand Down
2 changes: 1 addition & 1 deletion exporters/auto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 4b97969

Please sign in to comment.