bugsnag-wai-1.0.0.1: WAI integration for Bugsnag error reporting for Haskell
Safe HaskellNone
LanguageHaskell2010

Network.Bugsnag.Wai

Synopsis

Documentation

updateEventFromWaiRequest :: Request -> BeforeNotify Source #

Set the events Event and Device

This function redacts the following Request headers:

  • Authorization
  • Cookie
  • X-XSRF-TOKEN (CSRF token header used by Yesod)

To avoid this, use updateEventFromWaiRequestUnredacted.

bugsnagDeviceFromWaiRequest :: Request -> Maybe Device Source #

Attempt to divine a Device from a request's User Agent

Exported for testing

redactRequestHeaders :: [HeaderName] -> BeforeNotify Source #

Redact the given request headers

Headers like Authorization may contain information you don't want to report to Bugsnag.

redactRequestHeaders ["Authorization", "Cookie"]