lib/instana/activator.rb in instana-1.195.4 vs lib/instana/activator.rb in instana-1.197.0.pre1
- old
+ new
@@ -5,15 +5,17 @@
class Activator
class << self
attr_reader :trace_point, :activators
def start
+ # :nocov:
@trace_point = TracePoint.new(:end) do
activated = ::Instana::Activator.call
::Instana.logger.debug { "Activated #{activated.join(', ')}" } unless activated.empty?
end
@trace_point.enable if enabled?
+ # :nocov:
end
def call
@activators ||= []
activated, @activators = @activators.partition(&:call)