Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines the type of TraceParent
which can be parsed
Synopsis
- spanContextFromEnvironment :: IO (Maybe SpanContext)
- spanContextToEnvironment :: Span -> IO [(String, String)]
- setParentSpanFromEnvironment :: IO ()
Documentation
spanContextFromEnvironment :: IO (Maybe SpanContext) Source #
This function looks up the TRACEPARENT
and TRACECONTEXT
environment
variables and returns a
constructed from them.Maybe
SpanContext
spanContextToEnvironment :: Span -> IO [(String, String)] Source #
This function takes the given Span
and converts it into a list of
environment variables consisting of:
[ ( TRACEPARENT, traceParent) , ( TRACESTATE, traceState) ]
setParentSpanFromEnvironment :: IO () Source #
This function should be called after you've initialized and attached the
thread local Context
.