lib/request_tracer/trace.rb in request-tracer-0.5.6 vs lib/request_tracer/trace.rb in request-tracer-0.5.8

- old
+ new

@@ -37,11 +37,11 @@ @value end end def ==(other_span) - other_span&.value == @value + other_span && (other_span.value == @value) end def to_s; "%016x" % @value; end def to_i; @i64; end end @@ -127,10 +127,10 @@ end end end def record(annotation = nil, &block) - tracer.record(latest&.next_id || create, annotation, &block) + tracer.record((latest && latest.next_id) || create, annotation, &block) end def tracer=(tracer) @tracer = tracer end