Appsignal.Plug
⚠️ NOTE: Appsignal.Plug is part of an upcoming version of Appsignal for Elixir, and hasn't been officially released. Aside from beta testing, we recommend using the current version of AppSignal for Elixir instead.
AppSignal's Plug instrumentation instruments calls to Plug applications to gain performance insights and error reporting.
Installation
To install Appsignal.Plug into your Plug application, first add
:appsignal_plug to your project's dependencies:
defp deps do
{:appsignal_plug, "~> 2.0.0-beta.1"}
endAfter that, follow the installation instructions for Appsignal for Elixir.
Finally, use Appsignal.Plug in your application's router module:
defmodule AppsignalPlugExample do
use Plug.Router
use Appsignal.Plug
plug(:match)
plug(:dispatch)
get "/" do
send_resp(conn, 200, "Welcome")
end
end