lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-8.13.1 vs lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-8.14.0

- old
+ new

@@ -44,9 +44,15 @@ def add_custom_attributes(p) attributes.merge_custom_attributes(p) end + def self.finish(segment) + return unless segment + + segment.finish + end + private def record_metrics if record_scoped_metric? metric_cache.record_scoped_and_unscoped(name, duration, exclusive_duration)