Safe Haskell | None |
---|---|
Language | Haskell2010 |
Automatically creates entry spans for all incoming HTTP requests in a WAI application. It will also add (or append to) the HTTP respons header (Server-Timing) that is used for website monitoring back end correlation.
Note that exit spans still need to be created manually via the withExit or startExit/stopExit functions.
Example
main = do Warp.run 3000 $ InstanaWaiMiddleware.traceHttpEntries instana $ app
Synopsis
Documentation
traceHttpEntries :: InstanaContext -> Middleware Source #
Run the tracing middleware given an initialized Instana SDK context. The middleware will create entry spans automatically. It will also add (or append to) the HTTP respons header (Server-Timing) that is used for website monitoring back end correlation.