
    g                        d dl mZ d dlZd dlmZmZ d dlmZ 	 d dlm	Z	  edej                  d      Zd	dZy# e
$ r	  ed      w xY w)
    )annotationsN)AnyTypeVar)TracerProvider)SQLite3Instrumentorz`logfire.instrument_sqlite3()` requires the `opentelemetry-instrumentation-sqlite3` package.
You can install this with:
    pip install 'logfire[sqlite3]'SQLite3Connectionc                t    | t               j                  | |      S  t               j                  dd|i|S )zInstrument the `sqlite3` module so that spans are automatically created for each query.

    See the `Logfire.instrument_sqlite3` method for details.
    )tracer_providerr
    )r   instrument_connection
instrument)connr
   kwargss      [/var/www/openai/venv/lib/python3.12/site-packages/logfire/_internal/integrations/sqlite3.pyinstrument_sqlite3r      sD    
 "$::4Q`:aa/"$//ZZSYZZ    )r   r   r
   r   r   r   returnr   )
__future__r   sqlite3typingr   r   opentelemetry.tracer   %opentelemetry.instrumentation.sqlite3r   ImportErrorRuntimeError
Connectionr   r   r   r   r   <module>r      sZ    "   .I /1C1CTJ [  
	- s	   9 A