Class: Instana::Config
- Inherits:
-
Object
- Object
- Instana::Config
- Defined in:
- lib/instana/config.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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 |