/bugsnag-elixir

An Elixir interface to the Bugsnag API

Primary LanguageElixirMIT LicenseMIT

Bugsnag Elixir

Capture exceptions and send them to the Bugsnag API!

Installation

# Add it to your deps in your projects mix.exs
defp deps do
  [{:bugsnag, "~> 1.0.0"}]
end

# Now, list the :bugsnag application as your application dependency:
def application do
  [applications: [:bugsnag]]
end

# Open up your config/config.exs (or appropriate project config)
config :bugsnag, api_key: "bbf085fc54ff99498ebd18ab49a832dd"

Usage

# Report an exception.
try do
  :foo = :bar
rescue
  exception -> Bugsnag.report(exception)
end