
     <i                     H    d dl mZmZ d dlmZ d dlmZ  G d d          ZdS )    )OptionalUnion)Context)
Attributesc            	           e Zd ZdZ	 	 ddeeef         dedee	         ddfdZ
edeeef         fd            Zedefd	            Zedee	         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       /Users/kimhansen/Desktop/03 Workspace/ceo-agents/chl-effectiveness/mcp-servers/whoop/.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.context2   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__6   sJ    uk** .
ek).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__>   s+    gDJggT_ggX\Xdggggr   )NN)__name__
__module____qualname____doc__r   intfloatr   r   r   r   propertyr	   r
   r   objectboolr   strr     r   r   r   r      s:         "&%)	   S%Z     '"	 
 
        uUCZ(    X  J       X  '*    X
F 
t 
 
 
 
h# h h h h h hr   r   N)typingr   r   opentelemetry.contextr   opentelemetry.util.typesr   r   r+   r   r   <module>r/      s    # " " " " " " " ) ) ) ) ) ) / / / / / /*h *h *h *h *h *h *h *h *h *hr   