Sha256: 46695d26608d1b3148b0c768d80af7c417d87d335423b72859bb647c264c616a

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
  module Agent
    module Hostname
      def self.get
        if (dyno_name = ENV['DYNO']) && ::NewRelic::Agent.config[:use_heroku_dyno_names]
          dyno_name
        else
          Socket.gethostname
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
newrelic_rpm-3.9.4.245 lib/new_relic/agent/hostname.rb
newrelic_rpm-3.9.3.241 lib/new_relic/agent/hostname.rb
newrelic_rpm-3.9.2.239 lib/new_relic/agent/hostname.rb
newrelic_rpm-3.9.1.236 lib/new_relic/agent/hostname.rb
newrelic_rpm-3.9.0.229 lib/new_relic/agent/hostname.rb