class ElasticAPM::OpenTracing::Tracer

def prepare_span_context(

def prepare_span_context(
  child_of:,
  references:,
  ignore_active_scope:
)
  context = context_from_child_of(child_of) ||
            context_from_references(references) ||
            context_from_active_scope(ignore_active_scope)
  return context.child if context.respond_to?(:child)
  context
end