From 4f9ee01b5f1cde72d09741c396c0918b73774f2c Mon Sep 17 00:00:00 2001 From: Andre Murbach Maidl Date: Thu, 6 Mar 2025 11:18:14 -0300 Subject: [PATCH] Improve django instrumentation example (#3313) Co-authored-by: Riccardo Magliocchetti Co-authored-by: Leighton Chen --- .../src/opentelemetry/instrumentation/django/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py b/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py index e5851a17c..3b9af4127 100644 --- a/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py @@ -129,6 +129,8 @@ The hooks can be configured as follows: .. code:: python + from opentelemetry.instrumentation.django import DjangoInstrumentor + def request_hook(span, request): pass