Sha256: 41ce68713951ed84a78091fca508b2a00c9d18281a90276420d9e750317150d4

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

## 0.2.2

- rescue load error of `sidekiq/web` (this allows client only usage)

## 0.2.1

- added JSON stats path in case you would like to fetch this data from external service.
  It works similar to sidekiq's _stats_. You can visit: `expected_failures/stats` to
  get a JSON response with global counters (PR #4)

``` json
  {

    "failures": {
        "ExceptionName": "123",
        "Other::ExceptionName": "10",
    }

}
```

## 0.2.0

- [**breaking change**] ability to use Sidekiq's build-in `handle_exception`
  method - in case you want to use airbrake or other exception notify service.
  Since version `0.2.0` you need to provide  `expected_failures` in a form of
  a hash, for example:

``` ruby
class CustomizedWorker
  include ::Sidekiq::Worker
  sidekiq_options expected_failures: {
    NotImplementedError      => nil,          # notification disabled
    VeryOwn::CustomException => [10, 20, 50], # notify on 10th, 20th, 50th failure
    ZeroDivisionError        => 5             # notify on 5th failure
  }
end
```

- removed `sinatra-assetpack` dependency - js assets are now served inline
  (it seemed like a overkill to include that gem just for just two files)

- added option to configure exception handled by default (for all workers):

``` ruby
  Sidekiq.configure_server do |config|
    config.expected_failures = { AlwaysHandledExceptionByDefault => 1000 }
  end
```

Note: if you specify `expected_failure`s for given worker defaults will be
discarded (for that worker).

- small front-end adjustments

## 0.0.1

- Initial release

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-expected_failures-0.2.2 CHANGELOG.md