class ElasticAPM::Transaction

def next_span(name, type, context)

def next_span(name, type, context)
  Span.new(
    self,
    next_span_id,
    name,
    type,
    parent: current_span,
    context: context
  )
end