lib/lhc/response.rb in lhc-6.5.0 vs lib/lhc/response.rb in lhc-6.6.0.zipkin.pre

- old
+ new

@@ -30,12 +30,17 @@ def body body_replacement || raw.body.presence end - # Provides response time in ms. + # Provides response time in seconds def time - (raw.time || 0) * 1000 + time_ms * 1000 + end + + # Provides response time in milliseconds + def time_ms + raw.time || 0 end def timeout? raw.timed_out? end