o
    i/                     @  sn   d dl mZ d dlmZmZ d dlZd dlmZ zd dlm	Z	 W n e
y+   edw 			ddddZdS )    )annotations)AnyCallableN)Span)RequestsInstrumentorz`logfire.instrument_requests()` requires the `opentelemetry-instrumentation-requests` package.
You can install this with:
    pip install 'logfire[requests]'excluded_urls
str | Nonerequest_hook7Callable[[Span, requests.PreparedRequest], None] | Noneresponse_hookJCallable[[Span, requests.PreparedRequest, requests.Response], None] | Nonekwargsr   returnNonec                 K  s   t  jd| ||d| dS )zInstrument the `requests` module so that spans are automatically created for each request.

    See the `Logfire.instrument_requests` method for details.
    )r   r	   r   N )r   
instrument)r   r	   r   r   r   r   m/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/logfire/_internal/integrations/requests.pyinstrument_requests   s   

r   )NNN)
r   r   r	   r
   r   r   r   r   r   r   )
__future__r   typingr   r   requestsopentelemetry.sdk.tracer   &opentelemetry.instrumentation.requestsr   ImportErrorRuntimeErrorr   r   r   r   r   <module>   s    	