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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccc3bab5e4c60bb208ba2d4ac42085a432e16ca7
4
- data.tar.gz: a6bf3ed352018d1aeecbfdf1237cc2f67f3df8f1
3
+ metadata.gz: 5104ba06ff15ef2fc62c7fa7ff4c12fdf9d1d2bd
4
+ data.tar.gz: af521b6f79a1181ee2409ff9cd5aca5c965e6f6b
5
5
  SHA512:
6
- metadata.gz: 108bdcdf83b509a84a5f3474f567633188e9e5f59c731dbcbab99b07e78b195d0a369a7d04aa727d5df1bc35a6084c716f0c35ff0710e5116db868e7bffc3555
7
- data.tar.gz: e3a2eda55dda11ca79a02edc73326e20f7f0e71aa4e7f6875744ae718f64787dc176fa3234d7b132de2eb1661575590a379a8f7509a71c16aa4487ba5551bd1a
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.1.6][unreleased]
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
- Honeybadger::Trace.instrument("#{msg['class']}#perform", { :source => 'sidekiq', :jid => msg['jid'], :class => msg['class'] }) do
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
- Honeybadger.notify_or_ignore(ex, parameters: params)
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
@@ -1,4 +1,4 @@
1
1
  module Honeybadger
2
2
  # Public: The current String Honeybadger version.
3
- VERSION = '2.1.6.beta.1'.freeze
3
+ VERSION = '2.2.0.beta.1'.freeze
4
4
  end
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.1.6.beta.1
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-20 00:00:00.000000000 Z
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: