lib/instana/instrumentation/rack.rb in instana-1.9.7 vs lib/instana/instrumentation/rack.rb in instana-1.10.0.slimfast

- old
+ new

@@ -55,11 +55,11 @@ ::Instana.tracer.log_error(nil) end # Save the IDs before the trace ends so we can place # them in the response headers in the ensure block - trace_id = ::Instana.tracer.trace_id - span_id = ::Instana.tracer.span_id + trace_id = ::Instana.tracer.current_span.trace_id + span_id = ::Instana.tracer.current_span.id end [status, headers, response] rescue Exception => e ::Instana.tracer.log_error(e)