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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7e444033d429d6424076d8f3d6c7aa942f2bae8
4
- data.tar.gz: d88c37d537e0516520b86afffb6b78f0cb2a6b26
3
+ metadata.gz: 5f58ac33205387cf0533543da6b6921c97cab0ab
4
+ data.tar.gz: 50fa169704eedfbe308a26148e8d222d203e0046
5
5
  SHA512:
6
- metadata.gz: 688124c8813013080d11643e12380b252b76caa31804c53da31fd763a50d8ac39c5d097fd2bfde4294e30212e4b32aac1e60d0bdec4cf7013093aa98d3847cb6
7
- data.tar.gz: 6ab012d67586161133ac71506a934ea2f1b7a24e13c557ad8f8f8e5082f4cbe45b890e8dbf9599c538298c4e6a3ceb3cb0c94fda8cad0c1e77fd14460d36e2b6
6
+ metadata.gz: 1b67b2d5ee82fafd83ca90998199bbbed1e7608f393e92ac88e3f9fd977533aac9da9dbfd3f918cfa2ca3636129ae4f4aaafa2234b9962f1fcf132ec1ea9be2a
7
+ data.tar.gz: cdb457db7efe9c3c4627d840a97bccb412fdc628f93dfc202604304e242ac019d472a979b0c1de059e272f0818beac6a99e06c78aa77a04bc38f017ba7b36837
@@ -1,14 +1,9 @@
1
- # 1.1.9
2
- * Fix for race condition when creating working dir exactly at the same time
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
@@ -1,19 +1,19 @@
1
1
  ---
2
- version: 6f9ef3c
2
+ version: 594b119
3
3
  triples:
4
4
  x86_64-linux:
5
- checksum: 137928f57babb0a0a9df70d4bd9078869012cbe26b732bdd7f416b445a619ba1
6
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/6f9ef3c/appsignal-agent-x86_64-linux-static.tar.gz
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: 1d320139d3f90f9e3e679e25a86aa734f6267e8de1aa24a256a72c3f3eab2823
10
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/6f9ef3c/appsignal-agent-i686-linux-static.tar.gz
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: 1d320139d3f90f9e3e679e25a86aa734f6267e8de1aa24a256a72c3f3eab2823
14
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/6f9ef3c/appsignal-agent-i686-linux-static.tar.gz
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: bfc2b06038c3b8cef17377822df4dab522b7c0a2a4e6825f1ee8b0dd0bd615f9
18
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/6f9ef3c/appsignal-agent-x86_64-darwin-static.tar.gz
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 *Appsignal::Transaction::JSON_EXCEPTIONS => e
49
- Appsignal.logger.error("Error generating JSON (#{e.class}: #{e.message}) for '#{backtrace.inspect}'")
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 *JSON_EXCEPTIONS => e
142
- Appsignal.logger.error("Error generating JSON (#{e.class}: #{e.message}) for '#{data.inspect}'")
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 *JSON_EXCEPTIONS => e
170
- Appsignal.logger.error("Error generating JSON (#{e.class}: #{e.message}) for '#{backtrace.inspect}'")
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
 
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.1.9'
4
+ VERSION = '1.2.0.alpha.1'
5
5
  end
@@ -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
- if Appsignal.config && Appsignal.config.config_hash
24
- Appsignal.config.config_hash.each do |key, val|
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.9
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-06-03 00:00:00.000000000 Z
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: '0'
302
+ version: 1.3.1
303
303
  requirements: []
304
304
  rubyforge_project:
305
305
  rubygems_version: 2.4.5