module Datadog::Runtime::Identity

For runtime identity

Public Instance Methods

id() click to toggle source

Retrieves number of classes from runtime

# File lib/ddtrace/runtime/identity.rb, line 11
def id
  @pid ||= Process.pid
  @id ||= SecureRandom.uuid

  # Check if runtime has changed, e.g. forked.
  if Process.pid != @pid
    @pid = Process.pid
    @id = SecureRandom.uuid
  end

  @id
end
lang() click to toggle source
# File lib/ddtrace/runtime/identity.rb, line 24
def lang
  Ext::Runtime::LANG
end
lang_interpreter() click to toggle source
# File lib/ddtrace/runtime/identity.rb, line 28
def lang_interpreter
  Ext::Runtime::LANG_INTERPRETER
end
lang_version() click to toggle source
# File lib/ddtrace/runtime/identity.rb, line 32
def lang_version
  Ext::Runtime::LANG_VERSION
end
tracer_version() click to toggle source
# File lib/ddtrace/runtime/identity.rb, line 36
def tracer_version
  Ext::Runtime::TRACER_VERSION
end