
    g                        d dl 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lmZ  edd	d
      Zd
d	 	 	 	 	 	 	 ddZy
# e$ r	  ed      w xY w)    )annotations)AnyTypeVar)MySQLConnectionAbstract)PooledMySQLConnection)TracerProvider)MySQLInstrumentorz`logfire.instrument_mysql()` requires the `opentelemetry-instrumentation-mysql` package.
You can install this with:
    pip install 'logfire[mysql]'MySQLConnectionz/PooledMySQLConnection | MySQLConnectionAbstractN)connc                x    | t               j                  | |      S  t               j                  di |d|iS )zInstrument the `mysql` module or a specific MySQL connection so that spans are automatically created for each operation.

    See the `Logfire.instrument_mysql` method for details.
    )tracer_providerr    )r	   instrument_connection
instrument)r   r   kwargss      Y/var/www/openai/venv/lib/python3.12/site-packages/logfire/_internal/integrations/mysql.pyinstrument_mysqlr      sB      "888__)))TFTOTT    )r   r
   r   r   r   r   returnr
   )
__future__r   typingr   r   mysql.connector.abstractsr   mysql.connector.poolingr   opentelemetry.tracer   #opentelemetry.instrumentation.mysqlr	   ImportErrorRuntimeErrorr
   r   r   r   r   <module>r      s    "  = 9 .E +-^`de
 !U
U $U 	U
 U  
	+ s   A A