lib/rails/defer_notifications.rb in signalfx-rails-instrumentation-0.1.3 vs lib/rails/defer_notifications.rb in signalfx-rails-instrumentation-0.1.4
- old
+ new
@@ -67,10 +67,10 @@
span = tracer.start_span(spaninfo['name'],
child_of: parent_span,
start_time: spaninfo['start'],
tags: spaninfo['tags'])
- span.finish(end_time: spaninfo['finish'])
+ span.finish(end_time: spaninfo['finish']) if span
end
end
end
end
end