You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/otlpmetric/src/main/java/com/google/cloud/opentelemetry/example/otlpmetric/OTLPMetricExample.java
Copy file name to clipboardExpand all lines: examples/otlptrace/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,12 @@ Next, export the `GOOGLE_CLOUD_PROJECT` environment variable:
16
16
# Use your GCP project ID
17
17
export GOOGLE_CLOUD_PROJECT="your-gcp-project-id"
18
18
```
19
+
This environment variable also configures the [OpenTelemetry GCP Auth Extension](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/gcp-auth-extension) that facilitates authentication to GCP.
19
20
20
21
Finally, to run the sample from the project root:
21
22
22
23
```
23
-
cd examples/otlptrace && gradle run
24
+
./gradlew :examples-otlptrace:run
24
25
```
25
26
26
27
Running this sample will generate and export Traces to Google Cloud.
0 commit comments