class ElasticAPM::Metadata::SystemInfo

def detect_hostname

def detect_hostname
  Socket.gethostname.chomp
rescue
end