
    Zj                         d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
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)Callable)dumps)
deprecated)BoundedAttributes)AnyValue
Attributes_ExtendedAttributesc            	           e Zd ZdZdZ ed          	 	 ddededz  dedz  fd            Zd	 Zd
 Z	d Z
d Zededz  fd            Zededz  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       c/var/www/FlaskApp/flask-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__)   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__,       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__/   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__6   sP    ;;d4jj((!!
DM4+;<KN@
 
 	
r   returnc                     | j         S r"   r   r   s    r   r   zInstrumentationInfo.schema_url?       r   c                     | j         S r"   r   r   s    r   r   zInstrumentationInfo.versionC   
    }r   c                     | j         S r"   r   r   s    r   r   zInstrumentationInfo.nameG   
    zr   )NN)r   
__module____qualname____doc__	__slots__r   strr   r    r%   r*   r-   propertyr   r   r    r   r   r   r      sE         5IZO  #!%	
& 
&
& t
& $J	
& 
& 
& 
&[ [ [C C C> > >
 
 
  C$J       X  t    X c    X  r   r   c                      e Zd ZdZdZ	 	 	 ddededz  dedz  dedz  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dz  fd            Zededz  fd            Zedefd            Zedefd            Zdde	dz  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__V   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__d   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__g   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__j   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__y   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    intr%   objectrQ   r*   r-   r=   r   r   r   r   rB   rS   r>   r   r   r@   r@   L   s         DI
 #!%15D DD tD $J	D
 ($.D 
D D D Do# o o o oC# C C C C
F 
t 
 
 
 

F 
t 
 
 
 
  C$J       X  t    X c    X  J       X 
 
cDj 
 
 
 
 
 
 
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   collections.abcr   jsonr   typing_extensionsr   opentelemetry.attributesr   opentelemetry.util.typesr   r   r	   r   r@   rQ   _InstrumentationScopePredicateTr<   r\   r>   r   r   <module>rc      s(    $ $ $ $ $ $       ( ( ( ( ( ( 6 6 6 6 6 6         8 8 8 8 8 8 8 8vW
 W
 W
 W
 W
 W
 W
 W
t #+,@+A4+G"H $     r   