Sha256: cc89a71f2c0faa6b85e26eabe2ae9d0a1103340cd45c2b732ce5530914388100
Contents?: true
Size: 469 Bytes
Versions: 4
Compression:
Stored size: 469 Bytes
Contents
# typed: false require 'socket' require 'datadog/core/utils/forking' module Datadog module Core module Environment # For runtime identity module Socket extend Core::Utils::Forking module_function def hostname # Check if runtime has changed, e.g. forked. after_fork! { @hostname = ::Socket.gethostname.freeze } @hostname ||= ::Socket.gethostname.freeze end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems