From 94180137e9e01fe281896e0200e58156bcfb30cc Mon Sep 17 00:00:00 2001 From: alrex Date: Wed, 17 Mar 2021 08:58:16 -0700 Subject: [PATCH] fix wrong argument (#1702) --- docs/examples/auto-instrumentation/README.rst | 2 +- opentelemetry-instrumentation/README.rst | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/examples/auto-instrumentation/README.rst b/docs/examples/auto-instrumentation/README.rst index f21ab8f566..607aa1b44b 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 7261c177f8..78b6d79087 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.