| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Tracing
Contents
Synopsis
- type ServantTracingT api m = (MonadIO m, MonadTracer m) => ServerT api m
- type WithTracing = Header "uber-trace-id" TracingInstructions
- data TracingInstructions = TracingInstructions {}
- instructionsToHeader :: TracingInstructions -> Text
- getInstructions :: MonadIO m => Bool -> Maybe TracingInstructions -> m TracingInstructions
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 #
data TracingInstructions #
Instructions that are specific to a single trace
Constructors
| TracingInstructions | |
Instances
| Eq TracingInstructions # | |
Defined in Tracing.Core Methods (==) :: TracingInstructions -> TracingInstructions -> Bool # (/=) :: TracingInstructions -> TracingInstructions -> Bool # | |
| Show TracingInstructions # | |
Defined in Tracing.Core Methods showsPrec :: Int -> TracingInstructions -> ShowS # show :: TracingInstructions -> String # showList :: [TracingInstructions] -> ShowS # | |
| FromHttpApiData TracingInstructions # | |
Defined in Servant.Tracing Methods parseUrlPiece :: Text -> Either Text TracingInstructions # parseHeader :: ByteString -> Either Text TracingInstructions # parseQueryParam :: Text -> Either Text 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