You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This clutters stack traces with many extra lines and generally makes debugging unrelated things more difficult. It would be nice to have a way to disable that with the environment variable DD_TRACE_ENABLED=false.
It would also be nice if DD_TRACE_ENABLED was a master kill switch for all things that get installed automatically on import. For example, currently it looks like DD_INSTRUMENTATION_TELEMETRY_ENABLED is a separate switch that does not respect DD_TRACE_ENABLED=false.
How can we reproduce your problem?
Set environment variable DD_TRACE_ENABLED=false
Import ddtrace in a Python shell (see below)
ModuleWatchdog and other things (instrumentation telemetry, etc.) should not be installed automatically on import. ModuleWatchdog installation can be checked by looking at the type of sys.modules:
Summary of problem
ModuleWatchdog
is installed unconditionally on import.dd-trace-py/ddtrace/__init__.py
Line 8 in 2107e4c
This clutters stack traces with many extra lines and generally makes debugging unrelated things more difficult. It would be nice to have a way to disable that with the environment variable
DD_TRACE_ENABLED=false
.It would also be nice if
DD_TRACE_ENABLED
was a master kill switch for all things that get installed automatically on import. For example, currently it looks likeDD_INSTRUMENTATION_TELEMETRY_ENABLED
is a separate switch that does not respectDD_TRACE_ENABLED=false
.How can we reproduce your problem?
DD_TRACE_ENABLED=false
ddtrace
in a Python shell (see below)ModuleWatchdog
and other things (instrumentation telemetry, etc.) should not be installed automatically on import.ModuleWatchdog
installation can be checked by looking at the type ofsys.modules
:The text was updated successfully, but these errors were encountered: