tracing: Distributed tracing

[ bsd3, library, web ] [ Propose Tags ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1.0, 0.0.1.1, 0.0.1.2, 0.0.2.0, 0.0.2.1, 0.0.2.2, 0.0.2.3, 0.0.2.4, 0.0.3.0, 0.0.4.0, 0.0.5.0, 0.0.5.1, 0.0.5.2, 0.0.6.0, 0.0.6.2, 0.0.7.0, 0.0.7.1, 0.0.7.2, 0.0.7.3, 0.0.7.4
Dependencies aeson (>=1.4 && <1.5), base (>=4.8 && <5), base16-bytestring (>=0.1 && <0.2), bytestring (>=0.10 && <0.11), case-insensitive (>=1.2 && <1.3), containers (>=0.6 && <0.7), http-client (>=0.5 && <0.7), ip (>=1.4 && <1.5), mtl (>=2.2 && <2.3), network (>=2.8 && <3.2), random (>=1.1 && <1.2), stm (>=2.5 && <2.6), text (>=1.2 && <1.3), time (>=1.8 && <1.10), tracing, transformers (>=0.5 && <0.6), unliftio (>=0.2 && <0.3) [details]
License BSD-3-Clause
Copyright 2019 Matthieu Monsch
Author Matthieu Monsch
Maintainer matthieu.monsch@gmail.com
Category Web
Home page https://github.com/mtth/tracing
Uploaded by mtth at 2019-06-09T22:54:57Z
Distributions LTSHaskell:0.0.7.4, NixOS:0.0.7.4, Stackage:0.0.7.4
Reverse Dependencies 2 direct, 0 indirect [details]
Executables zipkin-example
Downloads 6335 total (64 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-06-09 [all 1 reports]

Readme for tracing-0.0.2.2

[back to package description]

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 implement your own.
import Monitor.Tracing

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

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