Ë
    àªg  ã                  óœ   — d dl mZ d dlmZmZ d dlmZmZ d dlm	Z	 d dl
mZ 	 d dlmZ 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d
d„Zy	# e$ r	  ed«      ‚w xY w)é    )Úannotations)ÚAnyÚCallable)ÚHttpRequestÚHttpResponse)ÚSpan)Úmaybe_capture_server_headers)ÚDjangoInstrumentorz—`logfire.instrument_django()` requires the `opentelemetry-instrumentation-django` package.
You can install this with:
    pip install 'logfire[django]'c                óX   — t        | «        t        «       j                  d||||dœ|¤Ž y)zžInstrument the `django` module so that spans are automatically created for each web request.

    See the `Logfire.instrument_django` method for details.
    )Úexcluded_urlsÚis_sql_commentor_enabledÚrequest_hookÚresponse_hookN© )r	   r
   Ú
instrument)Úcapture_headersr   r   r   r   Úkwargss         úZ/var/www/openai/venv/lib/python3.12/site-packages/logfire/_internal/integrations/django.pyÚinstrument_djangor      s;   € ô ! Ô1Ø#ÔÓ×#Ñ#ð Ø#Ø!9Ø!Ø#ñ	ð
 óó    N)r   Úboolr   zbool | Noner   z
str | Noner   z*Callable[[Span, HttpRequest], None] | Noner   z8Callable[[Span, HttpRequest, HttpResponse], None] | Noner   r   ÚreturnÚNone)Ú
__future__r   Útypingr   r   Údjango.httpr   r   Úopentelemetry.tracer   Úlogfire._internal.utilsr	   Ú$opentelemetry.instrumentation.djangor
   ÚImportErrorÚRuntimeErrorr   r   r   r   Ú<module>r"      s‰   ðÝ "ç  ç 1Ý $å @ðÝGðàðð *ðð ð	ð
 =ðð Lðð ðð 
ôøð ò Ù
ð	,óð ðús	   ¤= ½A