o
    i                  
   @   s  d Z ddlZddlZddlZddlm  mZ ddlmZ ddl	m
Z
 eeZzddlm  mZ e  ejeZeejv rejeZeje= ejddZdejvr_edur_eejd< z.zddlZW n ey}   ed edur{eejd< Y nw edej W ejee n$ejee w zddlZW n ey   ed Y nw edej ed	d
krdZnejejejdejv rdZndZe
ded dZ ej!D ]Z"e"  qW dS  e#y   dZ ej$ddd Y dS w )z
Bootstrapping code that is run when using the `ddtrace-run` Python entrypoint
Add all monkey-patching that needs to run by default here
    N)
get_logger)telemetry_writersitecustomizezddtrace.bootstrap.sitecustomizez"additional sitecustomize not foundz%additional sitecustomize found in: %s_DD_PY_SSI_INJECT1ssi	bootstrapcmd_linemanualinstrumentation_sourcecodeTFz!error configuring Datadog tracing)exc_info)%__doc__ddtraceossysddtrace.bootstrap.cloningr   cloningddtrace.internal.loggerr   ddtrace.internal.telemetryr   __name__logddtrace.bootstrap.preloadpreloadcleanup_loaded_modulespathdirname__file__bootstrap_dirindexmodulespopddtrace_sitecustomizer   ImportErrordebuginsertgetenvsourcejoinadd_configurationloadedpost_preloadf	Exceptionwarning r/   r/   S/home/ubuntu/.local/lib/python3.10/site-packages/ddtrace/bootstrap/sitecustomize.py<module>   sb    



 
