
     jn                         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dS )    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dS )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                 8    || _         || _        |d}|| _        d S )N r   )selfr   r   r   s       p/lsinfo/ai/hellotax_ai/base_platform/venv/lib/python3.11/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   s9    t**%ZZ
ZZdmZZtGWZZZZr   c                 D    t          | j        | j        | j        f          S Nhashr   r   r   r   s    r   __hash__zInstrumentationInfo.__hash__3       TZ0@ABBBr   c                     t          |          t          |           u o)| j        | j        | j        f|j        |j        |j        fk    S r"   )r   r   r   r   r   values     r   __eq__zInstrumentationInfo.__eq__6   sM    E{{d4jj( >JM.
 k5>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__=   sP    ;;d4jj((!!
DM4+;<KN@
 
 	
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   
    zr   )NN)r   
__module____qualname____doc__	__slots__r   strr   r   r    r%   r*   r-   propertyr   r   r    r   r   r   r      sE         5IZO  "&$(	
& 
&
& #
& SM	
& 
& 
& 
&[ [ [C C C> > >
 
 
  HSM       X  #    X c    X  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dS )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                 b    || _         || _        |d}|| _        t          |          | _        d S )Nr   )rB   )r   r   r   r   rA   )r   r   r   r   rB   s        r   r   zInstrumentationScope.__init__]   s>     
J%,
CCCr   c           
      p    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   sE    t**%nn
nndmnntGWnn[_[knnnnr   c                 D    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   s]    %!566 	"!!JM	
 KN	


 
	
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__   s]    %!566 	"!!JM	
 KN	


 
	
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   )rO   )r   r   r   r   boolrA   dict)r   rO   s     r   to_jsonzInstrumentationScope.to_json   s[    
="..243C.D.DND)***$  

 

 

 
	
r   )NNN)rN   )r   r8   r9   r:   r;   r<   r   r	   r   r    intr%   objectrQ   r*   r-   r=   r   r   r   r   rB   rS   r>   r   r   r@   r@   S   s         DI
 "&$(48D DD #D SM	D
 01D 
D D D Do# o o o oC# C C C C
F 
t 
 
 
 

F 
t 
 
 
 
  HSM       X  #    X c    X  J       X 
 
hsm 
C 
 
 
 
 
 
r   r@   glob_patternr.   c                 0     dt           dt          f fd}|S )Nscoper.   c                 8    t          j         | j                  S r"   )fnmatchr   )rX   rV   s    r   innerz'_scope_name_matches_glob.<locals>.inner   s    uz<888r   )r@   rQ   )rV   r[   s   ` r   _scope_name_matches_globr\      s7    9) 9d 9 9 9 9 9 9 Lr   )rZ   jsonr   typingr   r   typing_extensionsr   opentelemetry.attributesr   opentelemetry.util.typesr   r	   r   r@   rQ   _InstrumentationScopePredicateTr<   r\   r>   r   r   <module>rc      s          % % % % % % % % ( ( ( ( ( ( 6 6 6 6 6 6 D D D D D D D D8 8 8 8 8 8 8 8vW
 W
 W
 W
 W
 W
 W
 W
t #+,@+A4+G"H $     r   