https://github.com/appsignal/appsignal-elixir-plug
AppSignal instrumentation for Plug
https://github.com/appsignal/appsignal-elixir-plug
elixir plug
Last synced: 9 months ago
JSON representation
AppSignal instrumentation for Plug
- Host: GitHub
- URL: https://github.com/appsignal/appsignal-elixir-plug
- Owner: appsignal
- License: mit
- Created: 2020-03-18T14:27:06.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-07-21T14:30:00.000Z (11 months ago)
- Last Synced: 2025-09-30T03:33:35.620Z (9 months ago)
- Topics: elixir, plug
- Language: Elixir
- Homepage: https://www.appsignal.com/elixir
- Size: 176 KB
- Stars: 2
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Appsignal.Plug
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:
``` elixir
defp deps do
{:appsignal_plug, "~> 2.0"}
end
```
After that, follow the [installation instructions for Appsignal for
Elixir](https://docs.appsignal.com/elixir/installation/).
Finally, `use Appsignal.Plug` in your application's router module:
``` elixir
defmodule AppsignalPlugExample do
use Plug.Router
use Appsignal.Plug
plug(:match)
plug(:dispatch)
get "/" do
send_resp(conn, 200, "Welcome")
end
end
```
For more information, check out the [Integrating AppSignal into
Plug](https://docs.appsignal.com/elixir/integrations/plug.html) guide.