instana-haskell-trace-sdk-0.10.2.0: SDK for adding custom Instana tracing support to Haskell applications.
Safe HaskellNone
LanguageHaskell2010

Instana.Wai.Middleware.Entry

Description

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.