Skip to content

Commit 744db58

Browse files
authored
Fix local run for the sample (#396)
1 parent 13f5c30 commit 744db58

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/autoinstrument/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jib {
7171
// Configure auto instrumentation.
7272
'-Dotel.traces.exporter=google_cloud_trace',
7373
'-Dotel.metrics.exporter=google_cloud_monitoring',
74+
'-Dotel.logs.exporter=none',
75+
'-Dotel.resource.providers.gcp.enabled=true'
7476
]
7577
}
7678

examples/autoinstrument/run_in_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
echo "ENVIRONMENT VARIABLES VERIFIED"
2727

2828
echo "BUILDING SAMPLE APP IMAGE"
29-
gradle clean jib --image "gcr.io/${GOOGLE_CLOUD_PROJECT}/hello-autoinstrument-java"
29+
gradle clean jibDockerBuild --image "hello-autoinstrument-java-local:latest"
3030

3131

3232
echo "RUNNING SAMPLE APP ON PORT 8080"
@@ -36,4 +36,4 @@ docker run \
3636
-e "GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}" \
3737
-v "${GOOGLE_APPLICATION_CREDENTIALS}:${GOOGLE_APPLICATION_CREDENTIALS}:ro" \
3838
-p 8080:8080 \
39-
"gcr.io/${GOOGLE_CLOUD_PROJECT}/hello-autoinstrument-java"
39+
"hello-autoinstrument-java-local:latest"

0 commit comments

Comments
 (0)