Skip to content

Commit

Permalink
Fix quoted "otel-cli exec ..." example in README.md (#357)
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 #356.
It worked until `/bin/sh -c` was removed in #202.
  • Loading branch information
shastah authored Jan 14, 2025
1 parent 5b0157a commit 79d5c28
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 79d5c28

Please sign in to comment.