o
    Á¿iƒ  ã                   @   s    d Z ddlmZ edd„ ƒZdS )aê  
Dynamic Instrumentation
=======================

Enablement
----------

Dynamic Instrumentation can be enabled by setting the
``DD_DYNAMIC_INSTRUMENTATION_ENABLED`` variable to ``true`` in the environment,
when using the ``ddtrace-run`` command. Alternatively, when ``ddtrace-run``
cannot be used, it can be enabled programmatically with::

    import ddtrace.auto

Note that the ``DD_DYNAMIC_INSTRUMENTATION_ENABLED`` still needs to be set to
``true`` in the environment.

Alternatively, Dynamic Instrumentation can be enabled programmatically with::

    from ddtrace.debugging import DynamicInstrumentation

    # Enable dynamic instrumentation
    DynamicInstrumentation.enable()

    ...

    # Disable dynamic instrumentation
    DynamicInstrumentation.disable()

However, this method requires that Dynamic Instrumentation is started manually
in every forked process.


Configuration
-------------

See the :ref:`Configuration` page for more details on how to configure
Dynamic Instrumentation.
é    )Úlazyc                  C   s   ddl m}  d S )Nr   )ÚDebugger)Úddtrace.debugging._debuggerr   )ÚDynamicInstrumentation© r   úN/home/ubuntu/.local/lib/python3.10/site-packages/ddtrace/debugging/__init__.pyÚ_,   s   r   N)Ú__doc__Úddtrace.internal.moduler   r   r   r   r   r   Ú<module>   s    (