lib/contrast/extension/assess/array.rb in contrast-agent-4.9.1 vs lib/contrast/extension/assess/array.rb in contrast-agent-4.10.0
- old
+ new
@@ -9,11 +9,11 @@
module Extension
module Assess
# This is our patch of the Array class required to handle propagation
# Disclaimer: there may be a better way, but we're in a 'get it work' state.
# Hopefully, we'll be in a 'get it right' state soon.
- class ArrayPropagator
+ class ArrayPropagator # rubocop:disable Style/StaticClass
extend Contrast::Components::Scope::InstanceMethods
ARRAY_JOIN_HASH = {
'class_name' => 'Array',
'instance_method' => true,
@@ -56,19 +56,9 @@
properties.cleanup_tags
properties.build_event(ARRAY_JOIN_NODE, ret, ary, ret, [separator])
properties.event.instance_variable_set(:@_parent_events, parent_events)
ret
end
- end
-
- def instrument_array_track
- @_instrument_array_track ||= begin
- require 'cs__assess_array/cs__assess_array'
- true
- end
- rescue StandardError, LoadError => e
- logger.error('Error loading assess track patch', e)
- false
end
end
end
end
end