wai-middleware-rollbar-0.8.0: Middleware that communicates to Rollbar.

Copyright(c) Hardy Jones 2017
LicenseBSD3
Maintainerjones3.hardy@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

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

Documentation

data Settings headers 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.