@@ -56,15 +56,15 @@ this can be overriden when needed.
56
56
The command supports the following configuration options as CLI arguments and environment vars:
57
57
58
58
59
- * ``--trace-exporter `` or ``OTEL_TRACES_EXPORTER ``
59
+ * ``--traces_exporter `` or ``OTEL_TRACES_EXPORTER ``
60
60
61
61
Used to specify which trace exporter to use. Can be set to one or more of the well-known exporter
62
62
names (see below).
63
63
64
64
- Defaults to `otlp `.
65
- - Can be set to `none ` to disable automatic tracer initialization.
65
+ - Can be set to `none ` to disable automatic tracer initialization.
66
66
67
- You can pass multiple values to configure multiple exporters e.g, ``zipkin,prometheus ``
67
+ You can pass multiple values to configure multiple exporters e.g, ``zipkin,prometheus ``
68
68
69
69
Well known trace exporter names:
70
70
@@ -95,24 +95,24 @@ e.g OTEL_PYTHON_DISABLED_INSTRUMENTATIONS = "requests,django"
95
95
96
96
97
97
Examples
98
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
+ ^^^^^^^^
99
99
100
100
::
101
101
102
- opentelemetry-instrument --trace-exporter otlp flask run --port=3000
102
+ opentelemetry-instrument --traces_exporter otlp flask run --port=3000
103
103
104
- The above command will pass ``--trace-exporter otlp `` to the instrument command and ``--port=3000 `` to ``flask run ``.
104
+ The above command will pass ``--traces_exporter otlp `` to the instrument command and ``--port=3000 `` to ``flask run ``.
105
105
106
106
::
107
107
108
- opentelemetry-instrument --trace-exporter zipkin_json,otlp celery -A tasks worker --loglevel=info
108
+ opentelemetry-instrument --traces_exporter zipkin_json,otlp celery -A tasks worker --loglevel=info
109
109
110
110
The above command will configure global trace provider, attach zipkin and otlp exporters to it and then
111
- start celery with the rest of the arguments.
111
+ start celery with the rest of the arguments.
112
112
113
113
::
114
114
115
- opentelemetry-instrument --ids-generator random flask run --port=3000
115
+ opentelemetry-instrument --id_generator random flask run --port=3000
116
116
117
117
The above command will configure the global trace provider to use the Random IDs Generator, and then
118
118
pass ``--port=3000 `` to ``flask run ``.
0 commit comments