Skip to content

Commit 5a173df

Browse files
Fix autoconfigure example (#326)
1 parent 2fc872f commit 5a173df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoconfigure/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Then start the example application with the logging exporter configured:
2121
```shell
2222
java -Dotel.traces.exporter=logging \
2323
-Dotel.metrics.exporter=logging \
24+
-Dotel.logs.exporter=logging \
2425
-cp build/libs/opentelemetry-examples-autoconfigure-0.1.0-SNAPSHOT-all.jar \
2526
io.opentelemetry.example.autoconfigure.AutoConfigExample
2627
```
@@ -30,6 +31,7 @@ Alternatively, instead of system properties you can use environment variables:
3031
```shell
3132
export OTEL_TRACES_EXPORTER=logging
3233
export OTEL_METRICS_EXPORTER=logging
34+
export OTEL_LOGS_EXPORTER=logging
3335

3436
java -cp build/libs/opentelemetry-examples-autoconfigure-0.1.0-SNAPSHOT-all.jar \
3537
io.opentelemetry.example.autoconfigure.AutoConfigExample
@@ -46,4 +48,4 @@ INFO: 'important work' : ca3938a5793f6f9aba5c757f536a50cb b5e826c981112198 INTER
4648
...
4749
```
4850

49-
Congratulations! You are now collecting traces using OpenTelemetry.
51+
Congratulations! You are now collecting traces using OpenTelemetry.

0 commit comments

Comments
 (0)