From 2a952b3d4540fa767974c48afdb781d9e9340edd Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Wed, 15 Jul 2020 12:39:40 -0600 Subject: [PATCH] Fix a few issues with the Django example (#915) --- docs/examples/django/README.rst | 2 +- docs/examples/django/pages/views.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/examples/django/README.rst b/docs/examples/django/README.rst index 95c106d32f..e8a043684f 100644 --- a/docs/examples/django/README.rst +++ b/docs/examples/django/README.rst @@ -56,7 +56,7 @@ Open up a new console and activate the previous virtual environment there too: ``source django_auto_instrumentation/bin/activate`` -Go to ``opentelemetry-python/ext/opentelemetry-ext-django/example``, once there +Go to ``opentelemetry-python/docs/examples/django``, once there run the client with: ``python client.py hello`` diff --git a/docs/examples/django/pages/views.py b/docs/examples/django/pages/views.py index d54633c329..4083888e17 100644 --- a/docs/examples/django/pages/views.py +++ b/docs/examples/django/pages/views.py @@ -21,7 +21,6 @@ ) trace.set_tracer_provider(TracerProvider()) -tracer = trace.get_tracer_provider().get_tracer(__name__) trace.get_tracer_provider().add_span_processor( SimpleExportSpanProcessor(ConsoleSpanExporter())