Skip to content

Commit 9418013

Browse files
author
alrex
authored
fix wrong argument (open-telemetry#1702)
1 parent f92431e commit 9418013

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/examples/auto-instrumentation/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ and run the following command instead:
151151

152152
.. code:: sh
153153
154-
$ opentelemetry-instrument -e console_span python server_uninstrumented.py
154+
$ opentelemetry-instrument --trace-exporter console_span python server_uninstrumented.py
155155
156156
In the console where you previously executed ``client.py``, run the following
157157
command again:

opentelemetry-instrumentation/README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ Examples
8888

8989
::
9090

91-
opentelemetry-instrument -e otlp flask run --port=3000
91+
opentelemetry-instrument --trace-exporter otlp flask run --port=3000
9292

93-
The above command will pass ``-e otlp`` to the instrument command and ``--port=3000`` to ``flask run``.
93+
The above command will pass ``--trace-exporter otlp`` to the instrument command and ``--port=3000`` to ``flask run``.
9494

9595
::
9696

97-
opentelemetry-instrument -e zipkin,otlp celery -A tasks worker --loglevel=info
97+
opentelemetry-instrument --trace-exporter zipkin,otlp celery -A tasks worker --loglevel=info
9898

9999
The above command will configure global trace provider, attach zipkin and otlp exporters to it and then
100100
start celery with the rest of the arguments.

0 commit comments

Comments
 (0)