appsignal 1.2.0.alpha.6 → 1.2.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/agent.yml +9 -9
- data/ext/extconf.rb +4 -1
- data/lib/appsignal/config.rb +4 -4
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/config_spec.rb +2 -2
- data/spec/lib/appsignal/extension_spec.rb +30 -26
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1961ed742869bc42f46731ae2886077fcbe51a8a
|
4
|
+
data.tar.gz: 810e56cefb59bc34afaa86a1b00f0775dce15c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5ea8ee5ce64e217f2ff6397f1c45a770738346d777b695cf4d6b435f8da1b691171e4992bf551a34a5f1de5295ff685607c49e817b7d67cf547b3b7d23027ca
|
7
|
+
data.tar.gz: 17a3d405e94a611a88019045a7a4d1d7dd71b9ece5c1d4348a83234e85a5715c279efe84a6e2f855cd2490275f7e2438fe8ec250853cfee566165406eb567dc6
|
data/ext/agent.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
|
-
version:
|
2
|
+
version: 9eb5938
|
3
3
|
triples:
|
4
4
|
x86_64-linux:
|
5
|
-
checksum:
|
6
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
5
|
+
checksum: d66427bad79417552567527ccbba1be0984c22dd3d58857da69566d531ef2cd8
|
6
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-x86_64-linux-all-static.tar.gz
|
7
7
|
i686-linux:
|
8
|
-
checksum:
|
9
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
8
|
+
checksum: 30fb48f9f28004bb4ca41e7af83efbe8781208e4d9dcc044df069dc74f894363
|
9
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-i686-linux-all-static.tar.gz
|
10
10
|
x86-linux:
|
11
|
-
checksum:
|
12
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
11
|
+
checksum: 30fb48f9f28004bb4ca41e7af83efbe8781208e4d9dcc044df069dc74f894363
|
12
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-i686-linux-all-static.tar.gz
|
13
13
|
x86_64-darwin:
|
14
|
-
checksum:
|
15
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
14
|
+
checksum: 356032a3c8f137481c19cb6b960117a2e11aeacbc7d663ae05e11e710bd3f6cd
|
15
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-x86_64-darwin-all-static.tar.gz
|
data/ext/extconf.rb
CHANGED
@@ -48,7 +48,7 @@ def install
|
|
48
48
|
arch_config = AGENT_CONFIG['triples'][ARCH]
|
49
49
|
|
50
50
|
unless File.exists?(ext_path('appsignal-agent')) &&
|
51
|
-
File.exists?(ext_path(
|
51
|
+
File.exists?(ext_path('libappsignal.a')) &&
|
52
52
|
File.exists?(ext_path('appsignal_extension.h'))
|
53
53
|
logger.info "Downloading agent release from #{arch_config['download_url']}"
|
54
54
|
|
@@ -90,6 +90,9 @@ def install
|
|
90
90
|
end
|
91
91
|
rescue => ex
|
92
92
|
installation_failed "Exception while installing: #{ex}"
|
93
|
+
ex.backtrace.each do |line|
|
94
|
+
logger.error line
|
95
|
+
end
|
93
96
|
end
|
94
97
|
|
95
98
|
install
|
data/lib/appsignal/config.rb
CHANGED
@@ -19,7 +19,7 @@ module Appsignal
|
|
19
19
|
:enable_allocation_tracking => true,
|
20
20
|
:enable_gc_instrumentation => false,
|
21
21
|
:running_in_container => false,
|
22
|
-
:
|
22
|
+
:enable_host_metrics => false
|
23
23
|
}.freeze
|
24
24
|
|
25
25
|
ENV_TO_KEY_MAPPING = {
|
@@ -42,7 +42,7 @@ module Appsignal
|
|
42
42
|
'APPSIGNAL_ENABLE_GC_INSTRUMENTATION' => :enable_gc_instrumentation,
|
43
43
|
'APPSIGNAL_RUNNING_IN_CONTAINER' => :running_in_container,
|
44
44
|
'APPSIGNAL_WORKING_DIR_PATH' => :working_dir_path,
|
45
|
-
'
|
45
|
+
'APPSIGNAL_ENABLE_HOST_METRICS' => :enable_host_metrics
|
46
46
|
}.freeze
|
47
47
|
|
48
48
|
attr_reader :root_path, :env, :initial_config, :config_hash
|
@@ -113,7 +113,7 @@ module Appsignal
|
|
113
113
|
ENV['APPSIGNAL_IGNORE_ACTIONS'] = config_hash[:ignore_actions].join(',')
|
114
114
|
ENV['APPSIGNAL_RUNNING_IN_CONTAINER'] = config_hash[:running_in_container].to_s
|
115
115
|
ENV['APPSIGNAL_WORKING_DIR_PATH'] = config_hash[:working_dir_path] if config_hash[:working_dir_path]
|
116
|
-
ENV['
|
116
|
+
ENV['APPSIGNAL_ENABLE_HOST_METRICS'] = config_hash[:enable_host_metrics].to_s
|
117
117
|
end
|
118
118
|
|
119
119
|
protected
|
@@ -172,7 +172,7 @@ module Appsignal
|
|
172
172
|
%w(APPSIGNAL_ACTIVE APPSIGNAL_DEBUG APPSIGNAL_INSTRUMENT_NET_HTTP
|
173
173
|
APPSIGNAL_SKIP_SESSION_DATA APPSIGNAL_ENABLE_FRONTEND_ERROR_CATCHING
|
174
174
|
APPSIGNAL_ENABLE_ALLOCATION_TRACKING APPSIGNAL_ENABLE_GC_INSTRUMENTATION
|
175
|
-
APPSIGNAL_RUNNING_IN_CONTAINER
|
175
|
+
APPSIGNAL_RUNNING_IN_CONTAINER APPSIGNAL_ENABLE_HOST_METRICS).each do |var|
|
176
176
|
if env_var = ENV[var]
|
177
177
|
config[ENV_TO_KEY_MAPPING[var]] = env_var == 'true'
|
178
178
|
end
|
data/lib/appsignal/version.rb
CHANGED
@@ -34,7 +34,7 @@ describe Appsignal::Config do
|
|
34
34
|
:enable_allocation_tracking => true,
|
35
35
|
:enable_gc_instrumentation => false,
|
36
36
|
:running_in_container => false,
|
37
|
-
:
|
37
|
+
:enable_host_metrics => false
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -113,7 +113,7 @@ describe Appsignal::Config do
|
|
113
113
|
ENV['APPSIGNAL_IGNORE_ACTIONS'].should == 'action1,action2'
|
114
114
|
ENV['APPSIGNAL_RUNNING_IN_CONTAINER'].should == 'false'
|
115
115
|
ENV['APPSIGNAL_WORKING_DIR_PATH'].should be_nil
|
116
|
-
ENV['
|
116
|
+
ENV['APPSIGNAL_ENABLE_HOST_METRICS'].should == 'false'
|
117
117
|
end
|
118
118
|
|
119
119
|
context "if working_dir_path is set" do
|
@@ -37,40 +37,44 @@ describe "extension loading and operation" do
|
|
37
37
|
subject.stop
|
38
38
|
end
|
39
39
|
|
40
|
-
|
41
|
-
subject.start_transaction('request_id', 'http_request')
|
42
|
-
end
|
40
|
+
context "with a transaction" do
|
41
|
+
subject { Appsignal::Extension.start_transaction('request_id', 'http_request') }
|
43
42
|
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
it "should have a start_event method" do
|
44
|
+
subject.start_event
|
45
|
+
end
|
47
46
|
|
48
|
-
|
49
|
-
|
50
|
-
|
47
|
+
it "should have a finish_event method" do
|
48
|
+
subject.finish_event('name', 'title', 'body', 0)
|
49
|
+
end
|
51
50
|
|
52
|
-
|
53
|
-
|
54
|
-
|
51
|
+
it "should have a set_error method" do
|
52
|
+
subject.set_error('name', 'message', '[backtrace]')
|
53
|
+
end
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
it "should have a set_sample_data method" do
|
56
|
+
subject.set_sample_data('params', '{}')
|
57
|
+
end
|
59
58
|
|
60
|
-
|
61
|
-
|
62
|
-
|
59
|
+
it "should have a set_action method" do
|
60
|
+
subject.set_action('value')
|
61
|
+
end
|
63
62
|
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
it "should have a set_queue_start method" do
|
64
|
+
subject.set_queue_start(10)
|
65
|
+
end
|
67
66
|
|
68
|
-
|
69
|
-
|
70
|
-
|
67
|
+
it "should have a set_metadata method" do
|
68
|
+
subject.set_metadata('key', 'value')
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should have a finish method" do
|
72
|
+
subject.finish
|
73
|
+
end
|
71
74
|
|
72
|
-
|
73
|
-
|
75
|
+
it "should have a complete method" do
|
76
|
+
subject.complete
|
77
|
+
end
|
74
78
|
end
|
75
79
|
|
76
80
|
it "should have a set_gauge method" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appsignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0.
|
4
|
+
version: 1.2.0.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|