o
    ©i|  ã                   @  sN   d dl mZ d dlmZ zd dlmZ W n ey   edƒ‚w dd	d
„ZdS )é    )Úannotations)ÚAny)ÚCeleryInstrumentorz—`logfire.instrument_celery()` requires the `opentelemetry-instrumentation-celery` package.
You can install this with:
    pip install 'logfire[celery]'Úkwargsr   ÚreturnÚNonec                  K  s   t ƒ jdi | ¤ŽS )z—Instrument the `celery` module so that spans are automatically created for each task.

    See the `Logfire.instrument_celery` method for details.
    N© )r   Ú
instrument)r   r   r   úk/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/logfire/_internal/integrations/celery.pyÚinstrument_celery   s   r   N)r   r   r   r   )	Ú
__future__r   Útypingr   Ú$opentelemetry.instrumentation.celeryr   ÚImportErrorÚRuntimeErrorr   r   r   r   r
   Ú<module>   s    ÿÿ