Copyright | (c) Hardy Jones 2017 |
---|---|
License | BSD3 |
Maintainer | jones3.hardy@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Provides middleware for communicating with Rollbar.
Currently has middleware for sending all server errors to Rollbar. More to come shortly.
- data Settings headers = Settings {}
- exceptions :: RemoveHeaders headers => Settings headers -> Middleware
- requests :: RemoveHeaders headers => Settings headers -> Middleware
Documentation
data Settings headers Source #
Set up the middleware properly
The headers
are what you want removed from
the request headers sent to Rollbar.
Settings | |
|
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.