Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- waiPrometheusMiddleware :: Monad m => Routes a m b -> Middleware
- waiPrometheusMiddlewarePaths :: Paths -> Middleware
- normalizeWaiRequestRoute :: Paths -> Request -> Text
Documentation
waiPrometheusMiddleware :: Monad m => Routes a m b -> Middleware Source #
Adds a prometheus metrics endpoint at imetrics
This middleware requires your servers Routes
because it does some normalization
(e.g. removing params from calls)
waiPrometheusMiddlewarePaths :: Paths -> Middleware Source #
Helper function that should only be needed as long as we have wai-routing code left in
proxy: run treeToPaths
on old routing tables and routeToPaths
on the servant ones, and
feed both to this function.