Skip to content

Commit

Permalink
Update README (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
levijcl authored Aug 21, 2024
1 parent e361b2b commit b8fdc87
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions autoconfigure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ First build this example application:
Then start the example application with the logging exporter configured:

```shell
java -Dotel.traces.exporter=logging \
-Dotel.metrics.exporter=logging \
-Dotel.logs.exporter=logging \
java -Dotel.traces.exporter=console \
-Dotel.metrics.exporter=console \
-Dotel.logs.exporter=console \
-cp build/libs/opentelemetry-examples-autoconfigure-0.1.0-SNAPSHOT-all.jar \
io.opentelemetry.example.autoconfigure.AutoConfigExample
```

Alternatively, instead of system properties you can use environment variables:

```shell
export OTEL_TRACES_EXPORTER=logging
export OTEL_METRICS_EXPORTER=logging
export OTEL_LOGS_EXPORTER=logging
export OTEL_TRACES_EXPORTER=console
export OTEL_METRICS_EXPORTER=console
export OTEL_LOGS_EXPORTER=console

java -cp build/libs/opentelemetry-examples-autoconfigure-0.1.0-SNAPSHOT-all.jar \
io.opentelemetry.example.autoconfigure.AutoConfigExample
Expand Down

0 comments on commit b8fdc87

Please sign in to comment.