4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/instana/config.rb', line 4
def initialize
@config = {}
if ENV.key?('INSTANA_AGENT_HOST')
@config[:agent_host] = ENV['INSTANA_AGENT_HOST']
else
@config[:agent_host] = '127.0.0.1'
end
if ENV.key?('INSTANA_AGENT_PORT')
@config[:agent_port] = ENV['INSTANA_AGENT_PORT']
else
@config[:agent_port] = 42699
end
@config[:enabled] = true
@config[:metrics] = { :enabled => true }
@config[:metrics][:gc] = { :enabled => true }
@config[:metrics][:memory] = { :enabled => true }
@config[:metrics][:thread] = { :enabled => true }
@config[:tracing] = { :enabled => true }
if ENV.key?('INSTANA_DEBUG')
@config[:collector] = { :enabled => true, :interval => 3 }
else
@config[:collector] = { :enabled => true, :interval => 1 }
end
@config[:eum_api_key] = nil
@config[:eum_baggage] = {}
@config[:collect_backtraces] = false
@config[:action_controller] = { :enabled => true }
@config[:action_view] = { :enabled => true }
@config[:active_record] = { :enabled => true }
@config[:dalli] = { :enabled => true }
@config[:excon] = { :enabled => true }
@config[:grpc] = { :enabled => true }
@config[:nethttp] = { :enabled => true }
@config[:redis] = { :enabled => true }
@config[:'resque-client'] = { :enabled => true }
@config[:'resque-worker'] = { :enabled => true }
@config[:'rest-client'] = { :enabled => true }
@config[:'sidekiq-client'] = { :enabled => true }
@config[:'sidekiq-worker'] = { :enabled => true }
end
|