Sha256: 67292768c395105efd190f595824e90f542b0b582ce067c885ecee1a613be31b
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
# typed: false require 'securerandom' require 'datadog/core/environment/ext' require 'ddtrace/utils/forking' module Datadog module Core module Environment # For runtime identity module Identity extend Datadog::Utils::Forking module_function # Retrieves number of classes from runtime def id @id ||= SecureRandom.uuid # Check if runtime has changed, e.g. forked. after_fork! { @id = SecureRandom.uuid } @id end def lang Core::Environment::Ext::LANG end def lang_engine Core::Environment::Ext::LANG_ENGINE end def lang_interpreter Core::Environment::Ext::LANG_INTERPRETER end def lang_platform Core::Environment::Ext::LANG_PLATFORM end def lang_version Core::Environment::Ext::LANG_VERSION end def tracer_version Core::Environment::Ext::TRACER_VERSION end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems