opentracing-0.1.0.0: OpenTracing for Haskell
Safe HaskellNone
LanguageHaskell2010

OpenTracing.Reporting.Pure

Description

Reporters with no external components.

Synopsis

Documentation

noReporter :: MonadIO m => FinishedSpan -> m () Source #

A null reporter which ignores anything it's given.

memReporter :: MonadIO m => Mem -> FinishedSpan -> m () Source #

A reporter which stores the finished spans in memory where they wait to be consumed.

newMem :: IO Mem Source #

Construct a new memReporter environment that can store an unbounded seequence of FinishedSpans.

newBoundedMem :: Word32 -> IO Mem Source #

Construct a new memReporter environment that stores a bounded sequence of FinishedSpans

memPeek :: Mem -> IO [FinishedSpan] Source #

View the FinishedSpans in a memReporter without removing them.

memTake :: Mem -> IO [FinishedSpan] Source #

View and remove the FinishedSpans in a memReporter.