+
    ~j'	                         ^ RI Ht ^ RIHt ^ RIHtHtHtHtH	t	H
t
HtHtHt ^RIHt ]'       d   ^RIHt ]! R]R]3,          R7      t ! R	 R
4      t ! R R4      t ! R R4      tR# )    )default_timer)TracebackType)	AnyCallableLiteralOptionalTupleTypeTYPE_CHECKINGTypeVarUniondecorate)CounterF.)boundc                   h   a  ] tR t^t o V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltR	tV t	R
# )ExceptionCounterc                r   < V ^8  d   QhRRRS[ S[S[,          S[S[S[,          R3,          3,          RR/# )   counterr   	exception.returnN)r   r
   BaseExceptionr	   )format__classdict__s   "w/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/prometheus_client/context_managers.py__annotate__ExceptionCounter.__annotate__   sE     $ $	 $eD<OQVW[\iWjloWoQp<p6q $vz $    c                    Wn         W n        R # N_counter
_exception)selfr   r   s   &&&r   __init__ExceptionCounter.__init__   s    #r    c                   < V ^8  d   QhRR/# )r   r   N )r   r   s   "r   r   r      s      4 r    c                    R # r"   r*   r&   s   &r   	__enter__ExceptionCounter.__enter__   s    r    c          	         < V ^8  d   QhRS[ S[S[,          ,          RS[ S[,          RS[ S[,          RS[R,          /# )r   typvalue	tracebackr   F)r   r
   r   r   r   )r   r   s   "r   r   r      sR      HT-%89 (=BY fno|f}   CJ  KP  CQ r    c                p    \        W P                  4      '       d   V P                  P                  4        R # )F)
isinstancer%   r$   incr&   r0   r1   r2   s   &&&&r   __exit__ExceptionCounter.__exit__   s$    e__--MMr    c                "   < V ^8  d   QhRRRR/# r   fr   r   r*   )r   r   s   "r   r   r           $ $# $# $r    c                &   a  V 3R  lp\        W4      # )c                 f   < S;_uu_ 4        V ! V/ VB uuR R R 4       #   + '       g   i     R # ; ir"   r*   funcargskwargsr&   s   &*,r   wrapped*ExceptionCounter.__call__.<locals>.wrapped   !    T,V,    0	r   r&   r;   rC   s   f& r   __call__ExceptionCounter.__call__       	- ##r    r#   N
__name__
__module____qualname____firstlineno__r'   r-   r7   rH   __static_attributes____classdictcell__r   s   @r   r   r      s-     $ $  
$ $r    r   c                   D   a  ] tR t^$t o R tR tR tV 3R lR ltRtV t	R# )InprogressTrackerc                    Wn         R # r"   _gauge)r&   gauges   &&r   r'   InprogressTracker.__init__%   s    r    c                :    V P                   P                  4        R # r"   )rW   r5   r,   s   &r   r-   InprogressTracker.__enter__(       r    c                :    V P                   P                  4        R # r"   )rW   decr6   s   &&&&r   r7   InprogressTracker.__exit__+   r\   r    c                "   < V ^8  d   QhRRRR/# r:   r*   )r   r   s   "r   r   InprogressTracker.__annotate__.   r<   r    c                &   a  V 3R  lp\        W4      # )c                 f   < S;_uu_ 4        V ! V/ VB uuR R R 4       #   + '       g   i     R # ; ir"   r*   r?   s   &*,r   rC   +InprogressTracker.__call__.<locals>.wrapped/   rE   rF   r   rG   s   f& r   rH   InprogressTracker.__call__.   rJ   r    rV   NrK   rR   s   @r   rT   rT   $   s     $ $r    rT   c                   P   a  ] tR t^6t o R tR tR tR tR tV 3R lR lt	Rt
V tR	# )
Timerc                    Wn         W n        R # r"   )_metric_callback_name)r&   metriccallback_names   &&&r   r'   Timer.__init__7   s    +r    c                N    V P                  V P                  V P                  4      # r"   )	__class__ri   rj   r,   s   &r   
_new_timerTimer._new_timer;   s    ~~dllD,?,?@@r    c                $    \        4       V n        V # r"   )r   _startr,   s   &r   r-   Timer.__enter__>   s    #or    c                    \        \        4       V P                  ,
          ^ 4      p\        V P                  V P
                  4      pV! V4       R# )r   N)maxr   rs   getattrri   rj   )r&   r0   r1   r2   durationcallbacks   &&&&  r   r7   Timer.__exit__B   s7    }4a84<<)<)<=r    c                H    V P                   P                  ! V/ VB V n         R # r"   )ri   labels)r&   rA   kws   &*,r   r|   Timer.labelsH   s    ||**D7B7r    c                "   < V ^8  d   QhRRRR/# r:   r*   )r   r   s   "r   r   Timer.__annotate__K   s     $ $# $# $r    c                &   a  V 3R  lp\        W4      # )c                    < SP                  4       ;_uu_ 4        V ! V/ VB uuR R R 4       #   + '       g   i     R # ; ir"   )rp   r?   s   &*,r   rC   Timer.__call__.<locals>.wrappedL   s.     ""T,V, #"""s   ->	r   rG   s   f& r   rH   Timer.__call__K   s    	- ##r    )rj   ri   rs   N)rL   rM   rN   rO   r'   rp   r-   r7   r|   rH   rP   rQ   rR   s   @r   rg   rg   6   s)     ,A8$ $r    rg   N)timeitr   typesr   typingr   r   r   r   r	   r
   r   r   r   	decoratorr    r   r   r   rT   rg   r*   r    r   <module>r      sX        
  8CH-.A$ $*$ $$$ $r    