Skip to content

Commit eed804e

Browse files
Fix formatting errors in Django instrumentation example docs (#1940)
1 parent 0f6699d commit eed804e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/examples/django/README.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ Instrumentation package.
105105
Disabling Django Instrumentation
106106
--------------------------------
107107

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:
109109

110-
#. ``export OTEL_PYTHON_DJANGO_INSTRUMENT=False``
110+
``export OTEL_PYTHON_DJANGO_INSTRUMENT=False``
111111

112112
Auto Instrumentation
113113
--------------------
114114

115115
This same example can be run using auto instrumentation. Comment out the call
116116
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``.
118118
Repeat the steps with the client, the result should be the same.
119119

120120
Usage with Auto Instrumentation and uWSGI
@@ -123,15 +123,12 @@ Usage with Auto Instrumentation and uWSGI
123123
uWSGI and Django can be used together with auto instrumentation. To do so,
124124
first install uWSGI in the previous virtual environment:
125125

126-
```
127-
pip install uwsgi
128-
```
126+
``pip install uwsgi``
127+
129128
Once that is done, run the server with ``uwsgi`` from the directory that
130129
contains ``instrumentation_example``:
131130

132-
```
133-
opentelemetry-instrument uwsgi --http :8000 --module instrumentation_example.wsgi
134-
```
131+
``opentelemetry-instrument uwsgi --http :8000 --module instrumentation_example.wsgi``
135132

136133
This should start one uWSGI worker in your console. Open up a browser and point
137134
it to ``localhost:8000``. This request should display a span exported in the

0 commit comments

Comments
 (0)