Class: ElasticAPM::Metadata::ProcessInfo Private

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_apm/metadata/process_info.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ ProcessInfo

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ProcessInfo.



24
25
26
27
28
29
30
# File 'lib/elastic_apm/metadata/process_info.rb', line 24

def initialize(config)
  @config = config

  @argv = ARGV
  @pid = $PID || Process.pid
  @title = $PROGRAM_NAME
end

Instance Attribute Details

#argvObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



32
33
34
# File 'lib/elastic_apm/metadata/process_info.rb', line 32

def argv
  @argv
end

#pidObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



32
33
34
# File 'lib/elastic_apm/metadata/process_info.rb', line 32

def pid
  @pid
end

#titleObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



32
33
34
# File 'lib/elastic_apm/metadata/process_info.rb', line 32

def title
  @title
end