appsignal 0.12.rc.6 → 0.12.rc.7
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 +7 -7
- data/lib/appsignal.rb +9 -15
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/integrations/capistrano3_spec.rb +1 -1
- data/spec/lib/appsignal_spec.rb +19 -17
- 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: a531aa7d19fc95984cdd43be2973189fd4c346ce
|
4
|
+
data.tar.gz: af4743469d11f853cbc36b9db65febc1266e89f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1a9902fcceb5d376b9759aede9bc9bdd64cb7df27ca9bbc4ab3186dc099eccd6bf7bff28cc6d42aa3ee0f96f5a7c4f5ccdb086df3c36659b4faa623d8b75872
|
7
|
+
data.tar.gz: 8a53db6b00208926547f3326fff4257d9d58cf8bf521f0abe6425be6f8ad49107d7dbc13731aa759bdd2676d01c6f0ad1706036d6928b400136ccc76ffa4ffe9
|
data/ext/agent.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
|
-
:version:
|
2
|
+
:version: e249c63
|
3
3
|
:triples:
|
4
4
|
x86_64-linux:
|
5
|
-
:checksum:
|
6
|
-
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
5
|
+
:checksum: 444b04b39e98c3071bed05e337d17503ff736b1a830f3952868963cef7c36902
|
6
|
+
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/e249c63/appsignal-agent-x86_64-linux-static.tar.gz
|
7
7
|
:lib_filename: libappsignal.a
|
8
8
|
i686-linux:
|
9
|
-
:checksum:
|
10
|
-
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
9
|
+
:checksum: bd2fbb0f4185c0035b82b7a9a657b27b540696aa8a07bdbcac3a5651952957d7
|
10
|
+
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/e249c63/appsignal-agent-i686-linux-static.tar.gz
|
11
11
|
:lib_filename: libappsignal.a
|
12
12
|
x86_64-darwin:
|
13
|
-
:checksum:
|
14
|
-
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
13
|
+
:checksum: 957340856e0b5ac3f6e0bd2d5f70679218caf6cecc47f998c27b661cdad750df
|
14
|
+
:download_url: https://appsignal-agent-releases.global.ssl.fastly.net/e249c63/appsignal-agent-x86_64-darwin-static.tar.gz
|
15
15
|
:lib_filename: libappsignal.a
|
data/lib/appsignal.rb
CHANGED
@@ -12,16 +12,6 @@ module Appsignal
|
|
12
12
|
class << self
|
13
13
|
attr_accessor :config, :subscriber, :logger, :agent, :in_memory_log, :extension_loaded
|
14
14
|
|
15
|
-
def load_integrations
|
16
|
-
require 'appsignal/integrations/celluloid'
|
17
|
-
require 'appsignal/integrations/delayed_job'
|
18
|
-
require 'appsignal/integrations/passenger'
|
19
|
-
require 'appsignal/integrations/puma'
|
20
|
-
require 'appsignal/integrations/sidekiq'
|
21
|
-
require 'appsignal/integrations/resque'
|
22
|
-
require 'appsignal/integrations/unicorn'
|
23
|
-
end
|
24
|
-
|
25
15
|
def load_instrumentations
|
26
16
|
require 'appsignal/instrumentations/net_http' if config[:instrument_net_http]
|
27
17
|
require 'appsignal/instrumentations/redis' if config[:instrument_redis]
|
@@ -60,7 +50,6 @@ module Appsignal
|
|
60
50
|
logger.info("Starting AppSignal #{Appsignal::VERSION} on #{RUBY_VERSION}/#{RUBY_PLATFORM}")
|
61
51
|
config.write_to_environment
|
62
52
|
Appsignal::Extension.start
|
63
|
-
load_integrations
|
64
53
|
load_instrumentations
|
65
54
|
Appsignal::EventFormatter.initialize_formatters
|
66
55
|
initialize_extensions
|
@@ -80,9 +69,10 @@ module Appsignal
|
|
80
69
|
end
|
81
70
|
|
82
71
|
def forked
|
72
|
+
return unless active?
|
83
73
|
logger.debug('Forked process, resubscribing and restarting extension')
|
84
74
|
Appsignal::Extension.start
|
85
|
-
@subscriber
|
75
|
+
@subscriber.resubscribe
|
86
76
|
end
|
87
77
|
|
88
78
|
# Wrap a transaction with appsignal monitoring.
|
@@ -269,7 +259,11 @@ require 'appsignal/version'
|
|
269
259
|
require 'appsignal/rack/js_exception_catcher'
|
270
260
|
require 'appsignal/js_exception_transaction'
|
271
261
|
require 'appsignal/transmitter'
|
272
|
-
|
273
|
-
|
274
|
-
|
262
|
+
require 'appsignal/integrations/celluloid'
|
263
|
+
require 'appsignal/integrations/delayed_job'
|
264
|
+
require 'appsignal/integrations/passenger'
|
265
|
+
require 'appsignal/integrations/puma'
|
266
|
+
require 'appsignal/integrations/sidekiq'
|
275
267
|
require 'appsignal/integrations/rails'
|
268
|
+
require 'appsignal/integrations/resque'
|
269
|
+
require 'appsignal/integrations/unicorn'
|
data/lib/appsignal/version.rb
CHANGED
@@ -160,7 +160,7 @@ if capistrano3_present?
|
|
160
160
|
it "should not send deploy marker" do
|
161
161
|
Appsignal::Marker.should_not_receive(:new)
|
162
162
|
invoke('appsignal:deploy')
|
163
|
-
io.string.should include("Not loading: config for 'nonsense' not found")
|
163
|
+
io.string.should include("Not loading from config file: config for 'nonsense' not found")
|
164
164
|
end
|
165
165
|
end
|
166
166
|
end
|
data/spec/lib/appsignal_spec.rb
CHANGED
@@ -62,11 +62,6 @@ describe Appsignal do
|
|
62
62
|
Appsignal.start
|
63
63
|
end
|
64
64
|
|
65
|
-
it "should load integrations" do
|
66
|
-
Appsignal.should_receive(:load_integrations)
|
67
|
-
Appsignal.start
|
68
|
-
end
|
69
|
-
|
70
65
|
it "should load instrumentations" do
|
71
66
|
Appsignal.should_receive(:load_instrumentations)
|
72
67
|
Appsignal.start
|
@@ -120,14 +115,6 @@ describe Appsignal do
|
|
120
115
|
end
|
121
116
|
end
|
122
117
|
|
123
|
-
describe ".load_integrations" do
|
124
|
-
it "should require the integrations" do
|
125
|
-
Appsignal.should_receive(:require).at_least(:once)
|
126
|
-
end
|
127
|
-
|
128
|
-
after { Appsignal.load_integrations }
|
129
|
-
end
|
130
|
-
|
131
118
|
describe ".load_instrumentations" do
|
132
119
|
before { Appsignal.config = project_fixture_config }
|
133
120
|
|
@@ -167,11 +154,26 @@ describe Appsignal do
|
|
167
154
|
end
|
168
155
|
|
169
156
|
describe ".forked" do
|
170
|
-
|
171
|
-
|
172
|
-
|
157
|
+
context "when not active" do
|
158
|
+
it "should should do nothing" do
|
159
|
+
Appsignal::Extension.should_not_receive(:start)
|
160
|
+
Appsignal::Subscriber.should_not_receive(:new)
|
161
|
+
|
162
|
+
Appsignal.forked
|
163
|
+
end
|
164
|
+
end
|
173
165
|
|
174
|
-
|
166
|
+
context "when active" do
|
167
|
+
before do
|
168
|
+
Appsignal.config = project_fixture_config
|
169
|
+
end
|
170
|
+
|
171
|
+
it "should resubscribe and start the extension" do
|
172
|
+
Appsignal::Extension.should_receive(:start)
|
173
|
+
Appsignal::Subscriber.any_instance.should_receive(:resubscribe)
|
174
|
+
|
175
|
+
Appsignal.forked
|
176
|
+
end
|
175
177
|
end
|
176
178
|
end
|
177
179
|
|
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: 0.12.rc.
|
4
|
+
version: 0.12.rc.7
|
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: 2015-11-
|
12
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|