§
    xÅjÁ	  ã                   ó(  — d Z 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 ddlmZ er
dd	lmZmZmZ 	 dd
lmZ ddlmZ ddlmZ n# e$ r  ed¦  «        ‚w xY w	 ddlmZ n# e$ r dZY nw xY weddiiZ G d„ de¦  «        Zdd„Zdd„ZdS )zÈ
IMPORTANT: The contents of this file are part of a proof of concept and as such
are experimental and not suitable for production use. They may be changed or
removed at any time without prior notice.
é    N)ÚTYPE_CHECKING)ÚDidNotEnableÚIntegration)ÚSentryPropagator)ÚSentrySpanProcessor)Úhas_span_streaming_enabled)Úlogger)ÚAnyÚDictÚOptional)Útrace)Úset_global_textmap)ÚTracerProviderzopentelemetry not installed)ÚDjangoInstrumentorÚis_sql_commentor_enabledTc                   ó<   — e Zd ZdZedd„¦   «         Z	 d		 	 	 d
d„ZdS )ÚOpenTelemetryIntegrationÚopentelemetryÚreturnNc                  ó   — d S ©N© r   ó    úbC:\Projects\Historical\venv\Lib\site-packages\sentry_sdk/integrations/opentelemetry/integration.pyÚ
setup_oncez#OpenTelemetryIntegration.setup_once*   s   € àˆr   ÚoptionsúOptional[Dict[str, Any]]c                 óÌ   — t          |¦  «        rt          j        d¦  «         d S t          j        dt
          d¬¦  «         t          ¦   «          t          j        d¦  «         d S )Nzv[OTel] OpenTelemetryIntegration is not compatible with span streaming (trace_lifecycle='stream') and will be disabled.z†OpenTelemetryIntegration is deprecated. Please use OTLPIntegration instead: https://docs.sentry.io/platforms/python/integrations/otlp/é   )Ú
stacklevelz4[OTel] Finished setting up OpenTelemetry integration)r   r	   ÚwarningÚwarningsÚwarnÚDeprecationWarningÚ_setup_sentry_tracingÚdebug)Úselfr   s     r   Úsetup_once_with_optionsz0OpenTelemetryIntegration.setup_once_with_options.   sƒ   € õ & gÑ.Ô.ð 	ÝŒNðCñô ð ð ˆFåŒðIõ Øð	
ñ 	
ô 	
ð 	
õ 	ÑÔÐõ 	ŒÐKÑLÔLÐLÐLÐLr   ©r   Nr   )r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú
identifierÚstaticmethodr   r(   r   r   r   r   r   '   sh   € € € € € Ø €Jàðð ð ñ „\ðð 59ðMØ1ðMà	ðMð Mð Mð Mð Mð Mr   r   r   c                  óÂ   — t          ¦   «         } |                      t          ¦   «         ¦  «         t          j        | ¦  «         t          t          ¦   «         ¦  «         d S r   )r   Úadd_span_processorr   r   Úset_tracer_providerr   r   )Úproviders    r   r%   r%   F   sT   € ÝÑÔ€HØ×ÒÕ 3Ñ 5Ô 5Ñ6Ô6Ð6Ý	Ô˜hÑ'Ô'Ð'ÝÕ'Ñ)Ô)Ñ*Ô*Ð*Ð*Ð*r   c                  ót   — t                                ¦   «         D ]\  } }| €Œ  | ¦   «         j        di |¤Ž Œd S )Nr   )ÚCONFIGURABLE_INSTRUMENTATIONSÚitemsÚ
instrument)ÚinstrumentorÚkwargss     r   Ú_setup_instrumentorsr9   M   sW   € Ý =× CÒ CÑ EÔ Eð ,ð ,Ñˆ�fØÐØØ!ˆˆ‰ŒÔ!Ð+Ð+ FÐ+Ð+Ð+Ð+ð,ð ,r   r)   )Ú__doc__r"   Útypingr   Úsentry_sdk.integrationsr   r   Ú0sentry_sdk.integrations.opentelemetry.propagatorr   Ú4sentry_sdk.integrations.opentelemetry.span_processorr   Úsentry_sdk.tracing_utilsr   Úsentry_sdk.utilsr	   r
   r   r   r   r   Úopentelemetry.propagater   Úopentelemetry.sdk.tracer   ÚImportErrorÚ$opentelemetry.instrumentation.djangor   r4   r   r%   r9   r   r   r   ú<module>rE      sæ  ððð ð €€€Ø  Ð  Ð  Ð  Ð  Ð  à =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ø MÐ MÐ MÐ MÐ MÐ MØ TÐ TÐ TÐ TÐ TÐ TØ ?Ð ?Ð ?Ð ?Ð ?Ð ?Ø #Ð #Ð #Ð #Ð #Ð #àð +Ø*Ð*Ð*Ð*Ð*Ð*Ð*Ð*Ð*Ð*ð6Ø#Ð#Ð#Ð#Ð#Ð#Ø:Ð:Ð:Ð:Ð:Ð:Ø6Ð6Ð6Ð6Ð6Ð6Ð6øØð 6ð 6ð 6Ø
ˆ,Ð4Ñ
5Ô
5Ð5ð6øøøððð ð ð ð ð ð øð ð ð ð ØÐÐÐðøøøð
 Ð3°TÐ:ð!Ð ð
Mð Mð Mð Mð M˜{ñ Mô Mð Mð>+ð +ð +ð +ð,ð ,ð ,ð ,ð ,ð ,s   ºA ÁAÁ"A) Á)A3Á2A3