-
-
Save schneidmaster/9db15d6c897e46798e3645eeac2864ba to your computer and use it in GitHub Desktop.
Honeybadger Exq middleware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Exq.Middleware.Honeybadger do | |
def before_work(pipeline) do | |
pipeline | |
end | |
def after_processed_work(pipeline) do | |
pipeline | |
end | |
def after_failed_work(pipeline) do | |
require Honeybadger | |
Honeybadger.notify(pipeline.assigns.error) | |
pipeline | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment