exsentry v0.3.0 ExSentry.Plug

ExSentry.Plug is a Plug error handler which can be used to automatically intercept and report to Sentry any exceptions encountered by a Plug-based web application.

To use, configure mix.exs and config.exs as described in README.md, then add use ExSentry.Plug near the top of your webapp’s plug stack, for example:

defmodule MyApp.Router do
  use MyApp.Web, :router
  use ExSentry.Plug

  pipeline :browser do
  ...

Summary

Functions

handle_errors(conn, map)

Specs

handle_errors(%Plug.Conn{adapter: term, assigns: term, before_send: term, body_params: term, cookies: term, halted: term, host: term, method: term, owner: term, params: term, path_info: term, peer: term, port: term, private: term, query_params: term, query_string: term, remote_ip: term, req_cookies: term, req_headers: term, request_path: term, resp_body: term, resp_cookies: term, resp_headers: term, scheme: term, script_name: term, secret_key_base: term, state: term, status: term}, map) :: :ok