Skip to content

Commit

Permalink
permit DD_DYNAMIC_INSTRUMENTATION_ENABLED=1
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Nov 22, 2024
1 parent 914f02c commit 11353d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/di.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def remove_current_component(component)
end
end

if ENV['DD_DYNAMIC_INSTRUMENTATION_ENABLED'] == 'true'
if %w(1 true).include?(ENV['DD_DYNAMIC_INSTRUMENTATION_ENABLED'])
# For initial release of Dynamic Instrumentation, activate code tracking
# only if DI is explicitly requested in the environment.
# Code tracking is required for line probes to work; see the comments
Expand Down

0 comments on commit 11353d4

Please sign in to comment.