Skip to content

Commit 2a952b3

Browse files
authored
Fix a few issues with the Django example (open-telemetry#915)
1 parent 5d82b0a commit 2a952b3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/examples/django/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Open up a new console and activate the previous virtual environment there too:
5656

5757
``source django_auto_instrumentation/bin/activate``
5858

59-
Go to ``opentelemetry-python/ext/opentelemetry-ext-django/example``, once there
59+
Go to ``opentelemetry-python/docs/examples/django``, once there
6060
run the client with:
6161

6262
``python client.py hello``

docs/examples/django/pages/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
)
2222

2323
trace.set_tracer_provider(TracerProvider())
24-
tracer = trace.get_tracer_provider().get_tracer(__name__)
2524

2625
trace.get_tracer_provider().add_span_processor(
2726
SimpleExportSpanProcessor(ConsoleSpanExporter())

0 commit comments

Comments
 (0)