servant-tracing-0.1.0.2

Safe HaskellNone
LanguageHaskell2010

Servant.Tracing

Contents

Synopsis

Documentation

type ServantTracingT api m = (MonadIO m, MonadTracer m) => ServerT api m #

Constrain the ServerT's base monad such that it provides an instance of MonadTracer

type WithTracing = Header "uber-trace-id" TracingInstructions #

instructionsToHeader :: TracingInstructions -> Text #

Jaeger format: http://jaeger.readthedocs.io/en/latest/client_libraries/#propagation-format This allows the trace backend to reassemble downstream traces.

getInstructions :: MonadIO m => Bool -> Maybe TracingInstructions -> m TracingInstructions #

In the event that there are no TracingInstructions for this call, generate new instructions.

This has a

Orphan instances