Improve django instrumentation example (#3313)

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
This commit is contained in:
Andre Murbach Maidl
2025-03-06 11:18:14 -03:00
committed by GitHub
parent 2d5a21a3da
commit 4f9ee01b5f

View File

@ -129,6 +129,8 @@ The hooks can be configured as follows:
.. code:: python .. code:: python
from opentelemetry.instrumentation.django import DjangoInstrumentor
def request_hook(span, request): def request_hook(span, request):
pass pass