class Trace::NullSender

Public Instance Methods

end_span(span, timestamp = Time.now) click to toggle source
# File lib/zipkin-tracer/zipkin_null_sender.rb, line 14
def end_span(span, timestamp = Time.now)
  span.close(timestamp) if span.respond_to?(:close)
end
flush!() click to toggle source
# File lib/zipkin-tracer/zipkin_null_sender.rb, line 18
def flush!
  # NOOP
end
start_span(trace_id, name, timestamp = Time.now) click to toggle source
# File lib/zipkin-tracer/zipkin_null_sender.rb, line 10
def start_span(trace_id, name, timestamp = Time.now)
  Span.new(name, trace_id, timestamp)
end
with_new_span(trace_id, name) { |span| ... } click to toggle source
# File lib/zipkin-tracer/zipkin_null_sender.rb, line 3
def with_new_span(trace_id, name)
  span = start_span(trace_id, name)
  result = yield span
  end_span(span)
  result
end