diff --git a/lib/datadog/profiling/component.rb b/lib/datadog/profiling/component.rb index d6504a7582a..ed753e2dab4 100644 --- a/lib/datadog/profiling/component.rb +++ b/lib/datadog/profiling/component.rb @@ -453,7 +453,7 @@ def self.build_profiler_component(settings:, agent_settings:, optional_tracer:) private_class_method def self.dir_interruption_workaround_enabled?(settings, no_signals_workaround_enabled) return false if no_signals_workaround_enabled - # Note: In the future this method will evolve to check for Ruby versions affected and not apply the workaround + # NOTE: In the future this method will evolve to check for Ruby versions affected and not apply the workaround # when it's not needed but currently all known Ruby versions are affected. settings.profiling.advanced.dir_interruption_workaround_enabled diff --git a/lib/datadog/profiling/ext/dir_monkey_patches.rb b/lib/datadog/profiling/ext/dir_monkey_patches.rb index 5184307c027..243acfb2c6f 100644 --- a/lib/datadog/profiling/ext/dir_monkey_patches.rb +++ b/lib/datadog/profiling/ext/dir_monkey_patches.rb @@ -25,6 +25,7 @@ def self.apply! end end + # Monkey patches for Dir.singleton_class. See DirMonkeyPatches above for more details. module DirClassMonkeyPatches def [](*args, &block) Datadog::Profiling::Collectors::CpuAndWallTimeWorker._native_hold_interruptions @@ -142,6 +143,7 @@ def home(*args, &block) ruby2_keywords :home if respond_to?(:ruby2_keywords, true) end + # Monkey patches for Dir. See DirMonkeyPatches above for more details. module DirInstanceMonkeyPatches def each(*args, &block) if block