honeybadger 2.1.6.beta.1 → 2.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/CHANGELOG.md +9 -1
- data/lib/honeybadger/config/defaults.rb +5 -0
- data/lib/honeybadger/plugins/sidekiq.rb +5 -2
- data/lib/honeybadger/version.rb +1 -1
- 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: 5104ba06ff15ef2fc62c7fa7ff4c12fdf9d1d2bd
|
4
|
+
data.tar.gz: af521b6f79a1181ee2409ff9cd5aca5c965e6f6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4148b73b6cd561f46ebc35d5e42b21028c2d927f0be08ab555d1761658df1d9977e8f88a6f4e030b3c944b970dcfdaa34fb02c26d801e919f187501dba5075ef
|
7
|
+
data.tar.gz: 8c5c8dc0d40797a4ffe4ed5766086647b9c9caf9443c59c0f6e0670bca69f94f5460eee108fc248064112bb16ec357df2743cd992a1a3dd1a8f438ae03dd83c3
|
data/CHANGELOG.md
CHANGED
@@ -5,10 +5,18 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
## [Unreleased][unreleased]
|
7
7
|
|
8
|
-
## [2.
|
8
|
+
## [2.2.0][unreleased]
|
9
|
+
## Added
|
10
|
+
|
11
|
+
- Added a config option to automatically set the component to the class name of the
|
12
|
+
Sidekiq job where an error originated. Causes errors to be grouped by worker
|
13
|
+
in addition to class name/location.
|
14
|
+
|
9
15
|
## Fixed
|
10
16
|
- Always refresh capistrano revision during deploy notification.
|
11
17
|
- Support capistrano-chruby. -Kyle Rippey
|
18
|
+
- Send the wrapped class name for Sidekiq traces when using a wrapper such as
|
19
|
+
ActiveJob.
|
12
20
|
|
13
21
|
## [2.1.5] - 2015-09-23
|
14
22
|
## Fixed
|
@@ -271,6 +271,11 @@ module Honeybadger
|
|
271
271
|
default: 0,
|
272
272
|
type: Integer
|
273
273
|
},
|
274
|
+
:'sidekiq.use_component' => {
|
275
|
+
description: 'Automatically set the component to the class of the job. Helps with grouping.',
|
276
|
+
default: false,
|
277
|
+
type: Boolean
|
278
|
+
},
|
274
279
|
:'sinatra.enabled' => {
|
275
280
|
description: 'Enable Sinatra auto-initialization.',
|
276
281
|
default: true,
|
@@ -7,7 +7,8 @@ module Honeybadger
|
|
7
7
|
class Middleware
|
8
8
|
def call(worker, msg, queue)
|
9
9
|
Honeybadger.context.clear!
|
10
|
-
|
10
|
+
klass = msg['wrapped'] || msg['class']
|
11
|
+
Honeybadger::Trace.instrument("#{klass}#perform", { :source => 'sidekiq', :jid => msg['jid'], :class => klass }) do
|
11
12
|
yield
|
12
13
|
end
|
13
14
|
end
|
@@ -27,7 +28,9 @@ module Honeybadger
|
|
27
28
|
::Sidekiq.configure_server do |sidekiq|
|
28
29
|
sidekiq.error_handlers << lambda {|ex, params|
|
29
30
|
return if params['retry'] && params['retry_count'].to_i < config[:'sidekiq.attempt_threshold'].to_i
|
30
|
-
|
31
|
+
opts = {parameters: params}
|
32
|
+
opts[:component] = params['wrapped'] || params['class'] if config[:'sidekiq.use_component']
|
33
|
+
Honeybadger.notify_or_ignore(ex, opts)
|
31
34
|
}
|
32
35
|
end
|
33
36
|
end
|
data/lib/honeybadger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Honeybadger Industries LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|