Class: Instana::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/instana/config.rb

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/instana/config.rb', line 4

def initialize
  @config = {}
  @config[:agent_host] = '127.0.0.1'
  @config[:agent_port] = 42699
  @config[:metrics] = {}
  @config[:metrics][:gc]     = { :enabled => true }
  @config[:metrics][:memory] = { :enabled => true }
  @config[:metrics][:thread] = { :enabled => true }

  # HTTP Clients
  @config[:excon] = { :enabled => true }
end

Instance Method Details

#[](key) ⇒ Object



17
18
19
# File 'lib/instana/config.rb', line 17

def [](key)
  @config[key.to_sym]
end

#[]=(key, value) ⇒ Object



21
22
23
# File 'lib/instana/config.rb', line 21

def []=(key, value)
  @config[key.to_sym] = value
end