Skip to content

Commit

Permalink
Fix quoted "otel-cli exec ..." example in README.md
Browse files Browse the repository at this point in the history
This example from README:
```
# otel-cli propagates context via envvars so you can chain it to create child spans
otel-cli exec --kind producer "otel-cli exec --kind consumer sleep 1"
```
doesn't work, because we're running into equinix-labs#356.
It worked until `/bin/sh -c` was removed in equinix-labs#202.
  • Loading branch information
shastah authored Aug 12, 2024
1 parent 3a5648d commit cd9f194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
otel-cli exec --service my-service --name "curl google" curl https://google.com

# otel-cli propagates context via envvars so you can chain it to create child spans
otel-cli exec --kind producer "otel-cli exec --kind consumer sleep 1"
otel-cli exec --kind producer -- otel-cli exec --kind consumer sleep 1

# if a traceparent envvar is set it will be automatically picked up and
# used by span and exec. use --tp-ignore-env to ignore it even when present
Expand Down

0 comments on commit cd9f194

Please sign in to comment.