Capture exceptions and send them to the Bugsnag API!
# 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"# Report an exception.
try do
:foo = :bar
rescue
exception -> Bugsnag.report(exception)
end