tracing: Distributed tracing

[ bsd3, library, web ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

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), base (>=4.9 && <5), base16-bytestring (>=1.0), bytestring (>=0.10), case-insensitive (>=1.2), containers (>=0.6), http-client (>=0.5), mtl (>=2.2), network (>=2.8), random (>=1.1), stm (>=2.5), text (>=1.2), time (>=1.8), transformers (>=0.5), unliftio (>=0.2) [details]
License BSD-3-Clause
Copyright 2020 Matthieu Monsch
Author Matthieu Monsch
Maintainer mtth@apache.org
Category Web
Home page https://github.com/mtth/tracing
Source repo head: git clone https://github.com/mtth/tracing
Uploaded by mtth at 2024-01-20T18:17:36Z
Distributions LTSHaskell:0.0.7.4, NixOS:0.0.7.4, Stackage:0.0.7.4
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 6748 total (30 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-01-20 [all 1 reports]

Readme for tracing-0.0.7.4

[back to package description]

Tracing Stackage LTS Stackage Nightly Hackage Haskell CI

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.