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.



7
8
9
10
11
12
13
# File 'lib/elastic_apm/metadata/process_info.rb', line 7

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.



15
16
17
# File 'lib/elastic_apm/metadata/process_info.rb', line 15

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.



15
16
17
# File 'lib/elastic_apm/metadata/process_info.rb', line 15

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.



15
16
17
# File 'lib/elastic_apm/metadata/process_info.rb', line 15

def title
  @title
end