§
    ZŠtjh  ã                   ó8   — d dl mZ d dlmZ  G d„ d¦  «        ZdS )é    )ÚContext)Ú
Attributesc            	       ó¸   — e Zd ZdZ	 	 ddeez  dededz  ddfd„Ze	deez  fd„¦   «         Z
e	defd	„¦   «         Ze	dedz  fd
„¦   «         Zdedefd„Zdefd„ZdS )ÚObservationa!  A measurement observed in an asynchronous instrument

    Return/yield instances of this class from asynchronous instrument callbacks.

    Args:
        value: The float or int measured value
        attributes: The measurement's attributes
        context: The measurement's context
    NÚvalueÚ
attributesÚcontextÚreturnc                 ó0   — || _         || _        || _        d S ©N)Ú_valueÚ_attributesÚ_context)Úselfr   r   r	   s       úi/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/opentelemetry/metrics/_internal/observation.pyÚ__init__zObservation.__init__   s   € ð ˆŒØ%ˆÔØˆŒˆˆó    c                 ó   — | j         S r   )r   ©r   s    r   r   zObservation.value   s
   € àŒ{Ðr   c                 ó   — | j         S r   )r   r   s    r   r   zObservation.attributes"   s   € àÔÐr   c                 ó   — | j         S r   )r   r   s    r   r	   zObservation.context&   s
   € àŒ}Ðr   Úotherc                 óŒ   — t          |t          ¦  «        o/| j        |j        k    o| j        |j        k    o| j        |j        k    S r   )Ú
isinstancer   r   r   r	   )r   r   s     r   Ú__eq__zObservation.__eq__*   sJ   € å�u�kÑ*Ô*ð .Ø”
˜eœkÒ)ð.à” 5Ô#3Ò3ð.ð ” ¤Ò-ð		
r   c                 ó8   — d| j         › d| j        › d| j        › d�S )NzObservation(value=z, attributes=z
, context=ú))r   r   r	   r   s    r   Ú__repr__zObservation.__repr__2   s+   € Øg D¤JÐgÐg¸T¼_ÐgÐgÐX\ÔXdÐgÐgÐgÐgr   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚintÚfloatr   r   r   Úpropertyr   r   r	   ÚobjectÚboolr   Ústrr   © r   r   r   r   	   s.  € € € € € ðð ð "&Ø"&ð	 ð  à�U‰{ð ð ð ð ˜4‘ð	 ð
 
ð ð  ð  ð  ð ð�u˜s‘{ð ð ð ñ „Xðð ð ˜Jð  ð  ð  ñ „Xð ð ð˜ 4™ð ð ð ñ „Xðð
˜Fð 
 tð 
ð 
ð 
ð 
ðh˜#ð hð hð hð hð hð hr   r   N)Úopentelemetry.contextr   Úopentelemetry.util.typesr   r   r)   r   r   ú<module>r,      sg   ðð
 *Ð )Ð )Ð )Ð )Ð )Ø /Ð /Ð /Ð /Ð /Ð /ð*hð *hð *hð *hð *hñ *hô *hð *hð *hð *hr   