def unique_hosts(spans)
      hosts = []
      each_endpoint(spans) do |endpoint|
        hosts.push(endpoint)
      end
      hosts.uniq
    end
def unique_hosts(spans)
      hosts = []
      each_endpoint(spans) do |endpoint|
        hosts.push(endpoint)
      end
      hosts.uniq
    end
Using this to resolve only once per host