class Sentry::Span

def start_child(**attributes)

Parameters:
  • attributes (Hash) -- the attributes for the child span.
def start_child(**attributes)
  attributes = attributes.dup.merge(transaction: @transaction, trace_id: @trace_id, parent_span_id: @span_id, sampled: @sampled)
  new_span = Span.new(**attributes)
  new_span.span_recorder = span_recorder
  if span_recorder
    span_recorder.add(new_span)
  end
  new_span
end