freckle-app-1.0.3.0: Haskell application toolkit used at Freckle
Safe HaskellNone
LanguageHaskell2010

Freckle.App.Yesod

Description

Integration of Freckle.App tooling with Yesod

Synopsis

Documentation

Functions for use as yesodMiddleware

respondQueryCanceled :: (HasDogStatsClient site, HasDogStatsTags site) => HandlerFor site res -> HandlerFor site res Source #

Catch SqlError when queries are canceled due to timeout and respond 503

Also logs and increments a metric.

respondQueryCanceledHeaders :: (HasDogStatsClient site, HasDogStatsTags site) => ResponseHeaders -> HandlerFor site res -> HandlerFor site res Source #

respondQueryCanceledHeaders but adding headers to the 503 response