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:
parent
2d5a21a3da
commit
4f9ee01b5f
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue