BoomNotifier.WebhookNotifier (boom_notifier v0.8.0) View Source

Send exception notification as a json using HTTPoison.

Usage

defmodule YourApp.Router do
use Phoenix.Router

use BoomNotifier,
  notifier: BoomNotifier.WebhookNotifier,
  options: [
    url: "http://example.com",
    headers: [Authorization: "Bearer token"]
  ]

# ...

Link to this section Summary

Link to this section Types

Specs

options() ::
  [{:url, String.t()}] | [url: String.t(), headers: HTTPoison.Request.headers()]