# File lib/new_relic/agent/instrumentation/memcache/dalli.rb, line 98 def assign_instance_to segment, server host = port_path_or_id = nil if server.hostname.start_with? SLASH host = LOCALHOST port_path_or_id = server.hostname else host = server.hostname port_path_or_id = server.port end segment.set_instance_info host, port_path_or_id rescue => e ::NewRelic::Agent.logger.debug "Failed to retrieve memcached instance info: #{e.message}" segment.set_instance_info UNKNOWN, UNKNOWN end