
      in                         d dl Z d dlmZ d dlmZmZ d dlmZ d dlm	Z	 d dl
mZmZ  G d d      Z G d	 d
      Zeegef   ZdedefdZy)    N)dumps)CallableOptional)
deprecated)BoundedAttributes)
Attributes_ExtendedAttributesc            	           e Zd ZdZdZ ed      	 	 ddedee   dee   fd       Zd	 Z	d
 Z
d Zd Zedee   fd       Zedee   fd       Zedefd       Zy)InstrumentationInfozImmutable information about an instrumentation library module.

    See `opentelemetry.trace.TracerProvider.get_tracer` for the meaning of these
    properties.
    _name_version_schema_urlzEYou should use InstrumentationScope. Deprecated since version 1.11.1.Nnameversion
schema_urlc                 6    || _         || _        |d}|| _        y )N r   )selfr   r   r   s       {/Volumes/fast/ai/experiments/voice-extract-mac/.venv/lib/python3.12/site-packages/opentelemetry/sdk/util/instrumentation.py__init__zInstrumentationInfo.__init__!   s%     
J%    c                     t        |       j                   d| j                   d| j                   d| j                   dS N(z, ))type__name__r   r   r   r   s    r   __repr__zInstrumentationInfo.__repr__0   s<    t*%%&a

|2dmm_BtGWGWFXXYZZr   c                 Z    t        | j                  | j                  | j                  f      S Nhashr   r   r   r   s    r   __hash__zInstrumentationInfo.__hash__3   "    TZZ0@0@ABBr   c                     t        |      t        |       u xrG | j                  | j                  | j                  f|j                  |j                  |j                  fk(  S r"   )r   r   r   r   r   values     r   __eq__zInstrumentationInfo.__eq__6   sW    E{d4j( >JJMM.
 kk5>>5+<+<=	.> 	>r   c                     t        |      t        |       urt        S | j                  | j                  | j                  f|j                  |j                  |j                  fk  S r"   )r   NotImplementedr   r   r   r(   s     r   __lt__zInstrumentationInfo.__lt__=   sW    ;d4j(!!

DMM4+;+;<KKNN@
 
 	
r   returnc                     | j                   S r"   r   r   s    r   r   zInstrumentationInfo.schema_urlF       r   c                     | j                   S r"   r   r   s    r   r   zInstrumentationInfo.versionJ       }}r   c                     | j                   S r"   r   r   s    r   r   zInstrumentationInfo.nameN       zzr   )NN)r   
__module____qualname____doc__	__slots__r   strr   r   r    r%   r*   r-   propertyr   r   r    r   r   r   r      s     5IO "&$(	
&
& #
& SM	
&
&[C>
  HSM     #   c  r   r   c                       e Zd ZdZdZ	 	 	 ddedee   dee   dee   ddf
d	Zdefd
Z	de
fdZdedefdZdedefdZedee   fd       Zedee   fd       Zedefd       Zedefd       Zddee
   defdZy)InstrumentationScopezA logical unit of the application code with which the emitted telemetry can be
    associated.

    See `opentelemetry.trace.TracerProvider.get_tracer` for the meaning of these
    properties.
    )r   r   r   _attributesNr   r   r   
attributesr.   c                 X    || _         || _        |d}|| _        t        |      | _        y )Nr   )rB   )r   r   r   r   rA   )r   r   r   r   rB   s        r   r   zInstrumentationScope.__init__]   s2     
J%,
Cr   c           
          t        |       j                   d| j                   d| j                   d| j                   d| j
                   d
S r   )r   r   r   r   r   rA   r   s    r   r    zInstrumentationScope.__repr__k   sK    t*%%&a

|2dmm_BtGWGWFXXZ[_[k[kZllmnnr   c                 Z    t        | j                  | j                  | j                  f      S r"   r#   r   s    r   r%   zInstrumentationScope.__hash__n   r&   r   r)   c                     t        |t              st        S | j                  | j                  | j
                  | j                  f|j                  |j                  |j
                  |j                  fk(  S r"   
isinstancer@   r,   r   r   r   rA   r(   s     r   r*   zInstrumentationScope.__eq__q   si    %!56!!JJMM	
 KKNN	


 
	
r   c                     t        |t              st        S | j                  | j                  | j
                  | j                  f|j                  |j                  |j
                  |j                  fk  S r"   rG   r(   s     r   r-   zInstrumentationScope.__lt__   si    %!56!!JJMM	
 KKNN	


 
	
r   c                     | j                   S r"   r0   r   s    r   r   zInstrumentationScope.schema_url   r1   r   c                     | j                   S r"   r3   r   s    r   r   zInstrumentationScope.version   r4   r   c                     | j                   S r"   r6   r   s    r   r   zInstrumentationScope.name   r7   r   c                     | j                   S r"   )rA   r   s    r   rB   zInstrumentationScope.attributes   r1   r   indentc                     t        | j                  | j                  | j                  t	        | j
                        rt        | j
                        nd d|      S )N)r   r   r   rB   )rN   )r   r   r   r   boolrA   dict)r   rN   s     r   to_jsonzInstrumentationScope.to_json   sM    

=="...243C3C.DD))*$ 

 
	
r   )NNN)   )r   r8   r9   r:   r;   r<   r   r	   r   r    intr%   objectrP   r*   r-   r=   r   r   r   r   rB   rR   r>   r   r   r@   r@   S   s0    DI
 "&$(48DD #D SM	D
 01D 
Do# oC# C
F 
t 

F 
t 
  HSM     #   c    J    
hsm 
C 
r   r@   glob_patternr.   c                 ,     dt         dt        f fd}|S )Nscoper.   c                 D    t        j                   | j                        S r"   )fnmatchr   )rX   rV   s    r   innerz'_scope_name_matches_glob.<locals>.inner   s    uzz<88r   )r@   rP   )rV   r[   s   ` r   _scope_name_matches_globr\      s    9) 9d 9 Lr   )rZ   jsonr   typingr   r   typing_extensionsr   opentelemetry.attributesr   opentelemetry.util.typesr   r	   r   r@   rP   _InstrumentationScopePredicateTr<   r\   r>   r   r   <module>rc      s\      % ( 6 D8 8vW
 W
t #+,@+A4+G"H $r   