o
    ©i½  ã                   @   sL   d dl mZmZ d dlmZ d dlmZ G dd„ deƒZG dd„ deƒZdS )	é    )ÚAnyÚProtocol)ÚSpan)Ú
Connectionc                
   @   s.   e Zd ZdZdededededdf
dd	„ZdS )
ÚRequestHookz1A hook that is called before the request is sent.ÚspanÚinstanceÚargsÚkwargsÚreturnNc                 O   ó   dS )a  Call the hook.

        Args:
            span: The span that is being created.
            instance: The connection instance.
            *args: The arguments that are passed to the command.
            **kwargs: The keyword arguments that are passed to the command.
        N© )Úselfr   r   r	   r
   r   r   ú`/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/logfire/integrations/redis.pyÚ__call__
   ó    zRequestHook.__call__©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r      s    "r   c                   @   s*   e Zd ZdZdedededdfdd„ZdS )	ÚResponseHookz5A hook that is called after the response is received.r   r   Úresponser   Nc                 C   r   )z¼Call the hook.

        Args:
            span: The span that is being created.
            instance: The connection instance.
            response: The response that is received.
        Nr   )r   r   r   r   r   r   r   r      r   zResponseHook.__call__r   r   r   r   r   r      s    r   N)	Útypingr   r   Úopentelemetry.tracer   Úredisr   r   r   r   r   r   r   Ú<module>   s
    