BSD-3-Clause licensed by Matthieu Monsch
Maintained by [email protected]
This version can be pinned in stack with:tracing-0.0.3.0@sha256:449c125b36fc34764f2426b990e567da845efa4f99a610f5d9b937917c5178f0,2503

Module documentation for 0.0.3.0

Tracing

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 "root" $ 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 app/ folder.