| Copyright | (c) Hardy Jones 2017 |
|---|---|
| License | BSD3 |
| Maintainer | jones3.hardy@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Wai.Middleware.Rollbar
Description
Provides middleware for communicating with Rollbar.
Currently has middleware for sending all server errors to Rollbar. More to come shortly.
Synopsis
- data Settings (headers :: [Symbol]) = Settings {}
- exceptions :: RemoveHeaders headers => Settings headers -> Middleware
- requests :: RemoveHeaders headers => Settings headers -> Middleware
Documentation
data Settings (headers :: [Symbol]) Source #
Set up the middleware properly
The headers are what you want removed from
the request headers sent to Rollbar.
Constructors
| Settings | |
Fields
| |
exceptions :: RemoveHeaders headers => Settings headers -> Middleware Source #
Middleware that catches exceptions, sends an item to Rollbar, and rethrows the exception.
Sends additional metadata including the request information.
requests :: RemoveHeaders headers => Settings headers -> Middleware Source #
Middleware that watches responses and sends an item to Rollbar if it is a server error (5xx).
Sends additional metadata including the request information.