class Sentry::Configuration

def server_name_from_env

def server_name_from_env
  if running_on_heroku?
    ENV['DYNO']
  else
    # Try to resolve the hostname to an FQDN, but fall back to whatever
    # the load name is.
    Socket.gethostname || Socket.gethostbyname(hostname).first rescue server_name
  end
end