diff --git a/docs/examples/auto-instrumentation/README.rst b/docs/examples/auto-instrumentation/README.rst index f21ab8f5662..607aa1b44b7 100644 --- a/docs/examples/auto-instrumentation/README.rst +++ b/docs/examples/auto-instrumentation/README.rst @@ -151,7 +151,7 @@ and run the following command instead: .. code:: sh - $ opentelemetry-instrument -e console_span python server_uninstrumented.py + $ opentelemetry-instrument --trace-exporter console_span python server_uninstrumented.py In the console where you previously executed ``client.py``, run the following command again: diff --git a/opentelemetry-instrumentation/README.rst b/opentelemetry-instrumentation/README.rst index 7261c177f87..78b6d790876 100644 --- a/opentelemetry-instrumentation/README.rst +++ b/opentelemetry-instrumentation/README.rst @@ -88,13 +88,13 @@ Examples :: - opentelemetry-instrument -e otlp flask run --port=3000 + opentelemetry-instrument --trace-exporter otlp flask run --port=3000 -The above command will pass ``-e otlp`` to the instrument command and ``--port=3000`` to ``flask run``. +The above command will pass ``--trace-exporter otlp`` to the instrument command and ``--port=3000`` to ``flask run``. :: - opentelemetry-instrument -e zipkin,otlp celery -A tasks worker --loglevel=info + opentelemetry-instrument --trace-exporter zipkin,otlp celery -A tasks worker --loglevel=info The above command will configure global trace provider, attach zipkin and otlp exporters to it and then start celery with the rest of the arguments.