Copyright | (c) 2020 Stack Builders Inc. |
---|---|
License | MIT |
Maintainer | Sebastián Estrella <sestrella@stackbuilders.com> |
Safe Haskell | None |
Language | Haskell2010 |
For a fully working example check the following link:
https://github.com/stackbuilders/rollbar-haskell/blob/master/rollbar-wai/example/Main.hs
Synopsis
- rollbarOnException :: MonadIO m => Settings -> Maybe Request -> SomeException -> m ()
- rollbarOnExceptionWith :: MonadIO m => (Item -> Rollbar ()) -> Settings -> Maybe Request -> SomeException -> m ()
- mkRequest :: MonadIO m => Request -> m Request
Documentation
rollbarOnException :: MonadIO m => Settings -> Maybe Request -> SomeException -> m () Source #
Sends the captured SomeException
to Rollbar API using the given
Settings
. Under the hood, this function uses createItem
function from
rollbar-client.
Example
settings <- readSettings "rollbar.yaml" runSettings (setOnException (rollbarOnException settings) defaultSettings) app
Since: 0.1.0
rollbarOnExceptionWith :: MonadIO m => (Item -> Rollbar ()) -> Settings -> Maybe Request -> SomeException -> m () Source #
Similar to rollbarOnExceptionWith
, but it allows customize the function
used to send the Item
to Rollbar.
Since: 0.1.0