Safe Haskell | None |
---|---|
Language | Haskell2010 |
Control.Tracer.Transformers.WithThreadAndTime
Contents
Description
Observing events with annotations of thread id and time.
Synopsis
- data WithThreadAndTime a = WithThreadAndTime {
- occurredAt :: !SystemTime
- withinThread :: !ThreadId
- event :: !a
- threadAndTimeTracer :: MonadIO m => Tracer m (WithThreadAndTime a) -> Tracer m a
transformer
data WithThreadAndTime a Source #
Add some operational context, time and thread
note that this could, for example, be an instance of ToJSON
or
Generic
or similar to project it into a more general framework
Constructors
WithThreadAndTime | |
Fields
|
Instances
Show a => Show (WithThreadAndTime a) Source # | |
threadAndTimeTracer :: MonadIO m => Tracer m (WithThreadAndTime a) -> Tracer m a Source #
Add the time and thread to a trace observation