class ElasticAPM::OpenTracing::Tracer

def context_from_active_scope(ignore_active_scope)

def context_from_active_scope(ignore_active_scope)
  if ignore_active_scope
    ElasticAPM.agent&.config&.logger&.warn(
      'ignore_active_scope might lead to unexpeced results'
    )
    return
  end
  @scope_manager.active&.span&.context
end