Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtth/tracing
Distributed tracing
https://github.com/mtth/tracing
haskell tracing
Last synced: 2 months ago
JSON representation
Distributed tracing
- Host: GitHub
- URL: https://github.com/mtth/tracing
- Owner: mtth
- License: bsd-3-clause
- Created: 2019-06-08T18:35:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T21:51:14.000Z (11 months ago)
- Last Synced: 2024-10-10T18:24:03.426Z (3 months ago)
- Topics: haskell, tracing
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/tracing
- Size: 92.8 KB
- Stars: 24
- Watchers: 4
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tracing [![Stackage LTS](https://stackage.org/package/tracing/badge/lts)](https://stackage.org/lts/package/tracing) [![Stackage Nightly](https://stackage.org/package/tracing/badge/nightly)](https://stackage.org/nightly/package/tracing) [![Hackage](https://img.shields.io/hackage/v/tracing.svg)](https://hackage.haskell.org/package/tracing) [![Haskell CI](https://github.com/mtth/tracing/actions/workflows/test.yml/badge.svg)](https://github.com/mtth/tracing/actions/workflows/test.yml)
An [OpenTracing](https://opentracing.io/)-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](http://zipkin.io) backend or hook in
your own trace publication logic.```haskell
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`](https://hackage.haskell.org/package/tracing/docs/Monitor-Tracing.html),
or take a look at examples in the `examples/` folder.