File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ module Instana
316
316
# for docker in bridged mode.
317
317
#
318
318
def host_agent_ready ?
319
- run_discovery unless @discovered [:done ]
319
+ run_discovery unless @discovered [:done ]?
320
320
if @discovered
321
321
# Try default location or manually configured (if so)
322
322
uri = URI .parse(" http://#{ @discovered [:agent_host ]} :#{ @discovered [:agent_port ]} /" )
@@ -390,7 +390,7 @@ module Instana
390
390
#
391
391
def ready ?
392
392
# In test, we"re always ready :-)
393
- return true if ENV [" INSTANA_GEM_TEST " ]
393
+ return true if ENV [" INSTANA_SHARD_TEST " ]
394
394
395
395
if forked?
396
396
::Instana .logger.debug " Instana: detected fork. Calling after_fork"
Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ module Instana
27
27
# @return Bool
28
28
#
29
29
def self.debug ?
30
- ENV [" INSTANA_GEM_DEV " ]?
30
+ ENV [" INSTANA_SHARD_DEV " ]?
31
31
end
32
32
33
33
# Indicates whether we are running in the test environment.
34
34
#
35
35
# @return Bool
36
36
#
37
37
def self.test ?
38
- ENV [" INSTANA_GEM_TEST " ]?
38
+ ENV [" INSTANA_SHARD_TEST " ]?
39
39
end
40
40
end
41
41
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ module Instana
89
89
payload = enforce_deltas(payload, @last_values )
90
90
end
91
91
92
- if ENV [" INSTANA_GEM_TEST " ]?
92
+ if ENV [" INSTANA_SHARD_TEST " ]?
93
93
true
94
94
else
95
95
# Report all the collected goodies
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ module Instana
41
41
}
42
42
43
43
# FIXME
44
- # if ENV["INSTANA_GEM_DEV "]?
44
+ # if ENV["INSTANA_SHARD_DEV "]?
45
45
# @config[:collector][:interval] = 3
46
46
# end
47
47
end
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ module Instana
7
7
8
8
def initialize (* args)
9
9
super (* args)
10
- if ENV [" INSTANA_GEM_TEST " ]?
10
+ if ENV [" INSTANA_SHARD_TEST " ]?
11
11
self .level = Logger ::DEBUG
12
- elsif ENV [" INSTANA_GEM_DEV " ]?
12
+ elsif ENV [" INSTANA_SHARD_DEV " ]?
13
13
self .level = Logger ::DEBUG
14
14
else
15
15
self .level = Logger ::WARN
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ module Instana
77
77
# - Prevent another run of the timer while this is running
78
78
#
79
79
def send
80
- return if @queue .empty? || ENV [" INSTANA_GEM_TEST " ]?
80
+ return if @queue .empty? || ENV [" INSTANA_SHARD_TEST " ]?
81
81
82
82
size = @queue .size
83
83
if size > 100
You can’t perform that action at this time.
0 commit comments