Skip to content

Commit 98c6e56

Browse files
committed
Update supported environment variables.
1 parent 9797b8f commit 98c6e56

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/instana/agent.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ module Instana
316316
# for docker in bridged mode.
317317
#
318318
def host_agent_ready?
319-
run_discovery unless @discovered[:done]
319+
run_discovery unless @discovered[:done]?
320320
if @discovered
321321
# Try default location or manually configured (if so)
322322
uri = URI.parse("http://#{@discovered[:agent_host]}:#{@discovered[:agent_port]}/")
@@ -390,7 +390,7 @@ module Instana
390390
#
391391
def ready?
392392
# In test, we"re always ready :-)
393-
return true if ENV["INSTANA_GEM_TEST"]
393+
return true if ENV["INSTANA_SHARD_TEST"]
394394

395395
if forked?
396396
::Instana.logger.debug "Instana: detected fork. Calling after_fork"

src/instana/base.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ module Instana
2727
# @return Bool
2828
#
2929
def self.debug?
30-
ENV["INSTANA_GEM_DEV"]?
30+
ENV["INSTANA_SHARD_DEV"]?
3131
end
3232

3333
# Indicates whether we are running in the test environment.
3434
#
3535
# @return Bool
3636
#
3737
def self.test?
38-
ENV["INSTANA_GEM_TEST"]?
38+
ENV["INSTANA_SHARD_TEST"]?
3939
end
4040
end
4141

src/instana/collector.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module Instana
8989
payload = enforce_deltas(payload, @last_values)
9090
end
9191

92-
if ENV["INSTANA_GEM_TEST"]?
92+
if ENV["INSTANA_SHARD_TEST"]?
9393
true
9494
else
9595
# Report all the collected goodies

src/instana/config.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module Instana
4141
}
4242

4343
# FIXME
44-
# if ENV["INSTANA_GEM_DEV"]?
44+
# if ENV["INSTANA_SHARD_DEV"]?
4545
# @config[:collector][:interval] = 3
4646
# end
4747
end

src/instana/logger.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module Instana
77

88
def initialize(*args)
99
super(*args)
10-
if ENV["INSTANA_GEM_TEST"]?
10+
if ENV["INSTANA_SHARD_TEST"]?
1111
self.level = Logger::DEBUG
12-
elsif ENV["INSTANA_GEM_DEV"]?
12+
elsif ENV["INSTANA_SHARD_DEV"]?
1313
self.level = Logger::DEBUG
1414
else
1515
self.level = Logger::WARN

src/instana/tracing/processor.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module Instana
7777
# - Prevent another run of the timer while this is running
7878
#
7979
def send
80-
return if @queue.empty? || ENV["INSTANA_GEM_TEST"]?
80+
return if @queue.empty? || ENV["INSTANA_SHARD_TEST"]?
8181

8282
size = @queue.size
8383
if size > 100

0 commit comments

Comments
 (0)