lib/contrast/extension/assess/fiber.rb in contrast-agent-4.6.0 vs lib/contrast/extension/assess/fiber.rb in contrast-agent-4.7.0
- old
+ new
@@ -62,16 +62,11 @@
with_contrast_scope do
results.each do |result|
next unless (result_properties = Contrast::Agent::Assess::Tracker.properties!(result))
result_properties.splat_from(fiber, result)
- result_properties.build_event(
- FIBER_YIELD_NODE,
- result,
- fiber,
- result,
- [])
+ result_properties.build_event(FIBER_YIELD_NODE, result, fiber, result, [])
end
end
rescue Exception => e # rubocop:disable Lint/RescueException
logger.error('Unable to propagate during Fiber#yield', e)
end
@@ -83,15 +78,10 @@
with_contrast_scope do
properties = Contrast::Agent::Assess::Tracker.properties!(fiber)
return unless properties
properties.splat_from(underlying, fiber)
- properties.build_event(
- FIBER_NEW_NODE,
- fiber,
- underlying,
- fiber,
- [])
+ properties.build_event(FIBER_NEW_NODE, fiber, underlying, fiber, [])
end
rescue Exception => e # rubocop:disable Lint/RescueException
logger.error('Unable to propagate during Fiber.new', e)
end