lib/datadog/profiling/collectors/idle_sampling_helper.rb in ddtrace-1.9.0 vs lib/datadog/profiling/collectors/idle_sampling_helper.rb in ddtrace-1.10.0
- old
+ new
@@ -1,7 +1,5 @@
-# typed: false
-
module Datadog
module Profiling
module Collectors
# Used by the Collectors::CpuAndWallTimeWorker to gather samples when the Ruby process is idle.
# Almost all of this class is implemented as native code.
@@ -29,10 +27,10 @@
# a pristine state before recreating the worker thread
self.class._native_reset(self)
@worker_thread = Thread.new do
begin
- Thread.current.name = self.class.name unless Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
+ Thread.current.name = self.class.name
self.class._native_idle_sampling_loop(self)
Datadog.logger.debug('IdleSamplingHelper thread stopping cleanly')
rescue Exception => e # rubocop:disable Lint/RescueException