lib/request_tracer/trace.rb in request-tracer-0.6.2 vs lib/request_tracer/trace.rb in request-tracer-0.6.3
- old
+ new
@@ -92,10 +92,10 @@
def latest_or_create
latest || stack.push(create)
end
def push(trace_info)
- (yield ; return) unless trace_info
+ return yield unless trace_info
trace = if trace_info.include?("trace_id") && trace_info.include?("span_id")
TraceId.create(trace_info)
else
TraceId.spawn_from_hash(trace_info)
end