Method: LightStep::Span#finish

Defined in:
lib/lightstep/span.rb

#finish(end_time: Time.now) ⇒ Object

Finish the LightStep::Span

Parameters:

  • end_time (Time) (defaults to: Time.now)

    custom end time, if not now



156
157
158
159
160
161
162
# File 'lib/lightstep/span.rb', line 156

def finish(end_time: Time.now)
  if end_micros.nil?
    self.end_micros = LightStep.micros(end_time)
  end
  tracer.finish_span(self)
  self
end