BSD-3-Clause licensed by Matthieu Monsch, Alejandro Serrano
Maintained by [email protected]
This version can be pinned in stack with:tracing-control-0.0.6@sha256:f99d54ab523bbc194a211d6e9e5878ce6b6a3bd4c8ac8043cc1ae616c12e11da,1846

Module documentation for 0.0.6

Tracing Hackage

Important note: this is a fork of the original tracing library in which unliftio has been replaced by monad-control.

An OpenTracing-compliant, simple, and extensible distributed tracing library.

  • Simple: add a single MonadTrace constraint to start tracing, without making your code harder to test!
  • Extensible: use the built-in Zipkin backend or hook in your own trace publication logic.
import Monitor.Tracing

-- A traced action with its root span and two children.
run :: MonadTrace m => m ()
run = rootSpan alwaysSampled "parent" $ do
  childSpan "child-a" runA
  childSpan "child-b" runB

To learn more, hop on over to Monitor.Tracing, or take a look at examples in the examples/ folder.