appsignal 1.1.9 → 1.2.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -7
- data/ext/agent.yml +9 -9
- data/lib/appsignal/js_exception_transaction.rb +2 -2
- data/lib/appsignal/transaction.rb +5 -15
- data/lib/appsignal/version.rb +1 -1
- data/lib/tasks/diag.rake +2 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f58ac33205387cf0533543da6b6921c97cab0ab
|
4
|
+
data.tar.gz: 50fa169704eedfbe308a26148e8d222d203e0046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b67b2d5ee82fafd83ca90998199bbbed1e7608f393e92ac88e3f9fd977533aac9da9dbfd3f918cfa2ca3636129ae4f4aaafa2234b9962f1fcf132ec1ea9be2a
|
7
|
+
data.tar.gz: cdb457db7efe9c3c4627d840a97bccb412fdc628f93dfc202604304e242ac019d472a979b0c1de059e272f0818beac6a99e06c78aa77a04bc38f017ba7b36837
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,9 @@
|
|
1
|
-
# 1.
|
2
|
-
*
|
3
|
-
* Make diag Rake task resilient to missing config
|
4
|
-
|
5
|
-
# 1.1.8
|
6
|
-
* Require json to fix problem with using from Capistrano
|
1
|
+
# 1.2.0
|
2
|
+
* Restart background thread when FD's are closed
|
7
3
|
|
8
4
|
# 1.1.7
|
9
5
|
* Make logging resilient for closing FD's (daemons gem does this)
|
10
6
|
* Add support for using Resque through ActiveJob
|
11
|
-
* Rescue more expections in json generation
|
12
7
|
|
13
8
|
# 1.1.6
|
14
9
|
* Generic Rack instrumentation middleware
|
data/ext/agent.yml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
---
|
2
|
-
version:
|
2
|
+
version: 594b119
|
3
3
|
triples:
|
4
4
|
x86_64-linux:
|
5
|
-
checksum:
|
6
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
5
|
+
checksum: b80bb04c42f662b5b66a9b7061805ff6843f5fa27026d0c87ab7a7c8da6c2a64
|
6
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/594b119/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: 39d0a0d3aaf82743a4158a1c274e076c05fdc8a44c8e76d47bef78166af5e440
|
10
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/594b119/appsignal-agent-i686-linux-static.tar.gz
|
11
11
|
lib_filename: libappsignal.a
|
12
12
|
x86-linux:
|
13
|
-
checksum:
|
14
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
13
|
+
checksum: 39d0a0d3aaf82743a4158a1c274e076c05fdc8a44c8e76d47bef78166af5e440
|
14
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/594b119/appsignal-agent-i686-linux-static.tar.gz
|
15
15
|
lib_filename: libappsignal.a
|
16
16
|
x86_64-darwin:
|
17
|
-
checksum:
|
18
|
-
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/
|
17
|
+
checksum: c64c2b7b774c4c60ed99e5d508fc44bfbf99bd738fabd3d62157715f5215692f
|
18
|
+
download_url: https://appsignal-agent-releases.global.ssl.fastly.net/594b119/appsignal-agent-x86_64-darwin-static.tar.gz
|
19
19
|
lib_filename: libappsignal.a
|
@@ -45,8 +45,8 @@ module Appsignal
|
|
45
45
|
key.to_s,
|
46
46
|
Appsignal::Utils.json_generate(data)
|
47
47
|
)
|
48
|
-
rescue
|
49
|
-
Appsignal.logger.error("
|
48
|
+
rescue JSON::GeneratorError=>e
|
49
|
+
Appsignal.logger.error("JSON generate error (#{e.message}) for '#{data.inspect}'")
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'json'
|
2
|
-
|
3
1
|
module Appsignal
|
4
2
|
class Transaction
|
5
3
|
HTTP_REQUEST = 'http_request'.freeze
|
@@ -15,15 +13,7 @@ module Appsignal
|
|
15
13
|
HTTP_X_QUEUE_TIME HTTP_X_HEROKU_QUEUE_WAIT_TIME HTTP_X_APPLICATION_START
|
16
14
|
HTTP_ACCEPT HTTP_ACCEPT_CHARSET HTTP_ACCEPT_ENCODING HTTP_ACCEPT_LANGUAGE
|
17
15
|
HTTP_CACHE_CONTROL HTTP_CONNECTION HTTP_USER_AGENT HTTP_FROM HTTP_NEGOTIATE
|
18
|
-
HTTP_PRAGMA HTTP_REFERER HTTP_X_FORWARDED_FOR HTTP_CLIENT_IP HTTP_RANGE
|
19
|
-
HTTP_X_AUTH_TOKEN)
|
20
|
-
|
21
|
-
JSON_EXCEPTIONS = [
|
22
|
-
IOError,
|
23
|
-
NotImplementedError,
|
24
|
-
JSON::GeneratorError,
|
25
|
-
Encoding::UndefinedConversionError
|
26
|
-
].freeze
|
16
|
+
HTTP_PRAGMA HTTP_REFERER HTTP_X_FORWARDED_FOR HTTP_CLIENT_IP HTTP_RANGE)
|
27
17
|
|
28
18
|
class << self
|
29
19
|
def create(id, namespace, request, options={})
|
@@ -138,8 +128,8 @@ module Appsignal
|
|
138
128
|
key.to_s,
|
139
129
|
Appsignal::Utils.json_generate(data)
|
140
130
|
)
|
141
|
-
rescue
|
142
|
-
Appsignal.logger.error("
|
131
|
+
rescue JSON::GeneratorError=>e
|
132
|
+
Appsignal.logger.error("JSON generate error (#{e.message}) for '#{data.inspect}'")
|
143
133
|
end
|
144
134
|
|
145
135
|
def sample_data
|
@@ -166,8 +156,8 @@ module Appsignal
|
|
166
156
|
error.message.to_s,
|
167
157
|
backtrace ? Appsignal::Utils.json_generate(backtrace) : ''
|
168
158
|
)
|
169
|
-
rescue
|
170
|
-
Appsignal.logger.error("
|
159
|
+
rescue JSON::GeneratorError=>e
|
160
|
+
Appsignal.logger.error("JSON generate error (#{e.message}) for '#{backtrace.inspect}'")
|
171
161
|
end
|
172
162
|
alias_method :add_exception, :set_error
|
173
163
|
|
data/lib/appsignal/version.rb
CHANGED
data/lib/tasks/diag.rake
CHANGED
@@ -20,12 +20,8 @@ namespace :appsignal do
|
|
20
20
|
|
21
21
|
desc "Checks if config is present and shows the values"
|
22
22
|
task :config => :start_appsignal do
|
23
|
-
|
24
|
-
|
25
|
-
puts "Config #{key}: #{val}"
|
26
|
-
end
|
27
|
-
else
|
28
|
-
puts "No config present"
|
23
|
+
Appsignal.config.config_hash.each do |key, val|
|
24
|
+
puts "Config #{key}: #{val}"
|
29
25
|
end
|
30
26
|
end
|
31
27
|
|
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.1
|
4
|
+
version: 1.2.0.alpha.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-
|
12
|
+
date: 2016-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -297,9 +297,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
297
297
|
version: '1.9'
|
298
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
299
|
requirements:
|
300
|
-
- - "
|
300
|
+
- - ">"
|
301
301
|
- !ruby/object:Gem::Version
|
302
|
-
version:
|
302
|
+
version: 1.3.1
|
303
303
|
requirements: []
|
304
304
|
rubyforge_project:
|
305
305
|
rubygems_version: 2.4.5
|