BSD-3-Clause licensed by Matthieu Monsch
Maintained by mtth@apache.org

Module documentation for 0.0.4.0

This version can be pinned in stack with:tracing-0.0.4.0@sha256:ac89968197b08f988dfb976d6f46094ab1a8a8672f1533bad0f61edc186c58f0,2043

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 "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.

comments powered byDisqus