lib/new_relic/agent/instrumentation/curb/instrumentation.rb in newrelic_rpm-8.13.1 vs lib/new_relic/agent/instrumentation/curb/instrumentation.rb in newrelic_rpm-8.14.0

- old
+ new

@@ -141,10 +141,10 @@ request._nr_original_on_complete = original_callback request.on_complete do |finished_request| begin segment.process_response_headers(wrapped_response) if segment ensure - segment.finish if segment + ::NewRelic::Agent::Transaction::Segment.finish(segment) # Make sure the existing completion callback is run, and restore the # on_complete callback to how it was before. original_callback.call(finished_request) if original_callback remove_instrumentation_callbacks(request) end