@@ -105,16 +105,16 @@ Instrumentation package.
105
105
Disabling Django Instrumentation
106
106
--------------------------------
107
107
108
- Django's instrumentation can be disabled by setting the following environment variable.
108
+ Django's instrumentation can be disabled by setting the following environment variable:
109
109
110
- #. ``export OTEL_PYTHON_DJANGO_INSTRUMENT=False ``
110
+ ``export OTEL_PYTHON_DJANGO_INSTRUMENT=False ``
111
111
112
112
Auto Instrumentation
113
113
--------------------
114
114
115
115
This same example can be run using auto instrumentation. Comment out the call
116
116
to ``DjangoInstrumento().instrument() `` in ``main ``, then Run the django app
117
- with ``opentelemetry-instrumentation python manage.py runserver --noreload ``.
117
+ with ``opentelemetry-instrument python manage.py runserver --noreload ``.
118
118
Repeat the steps with the client, the result should be the same.
119
119
120
120
Usage with Auto Instrumentation and uWSGI
@@ -123,15 +123,12 @@ Usage with Auto Instrumentation and uWSGI
123
123
uWSGI and Django can be used together with auto instrumentation. To do so,
124
124
first install uWSGI in the previous virtual environment:
125
125
126
- ```
127
- pip install uwsgi
128
- ```
126
+ ``pip install uwsgi ``
127
+
129
128
Once that is done, run the server with ``uwsgi `` from the directory that
130
129
contains ``instrumentation_example ``:
131
130
132
- ```
133
- opentelemetry-instrument uwsgi --http :8000 --module instrumentation_example.wsgi
134
- ```
131
+ ``opentelemetry-instrument uwsgi --http :8000 --module instrumentation_example.wsgi ``
135
132
136
133
This should start one uWSGI worker in your console. Open up a browser and point
137
134
it to ``localhost:8000 ``. This request should display a span exported in the
0 commit comments