Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

Latest commit

 

History

History
31 lines (23 loc) · 1.43 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.43 KB

Susanin

Download Build Status Coverage Status

Chaliapin

This library provides an API to trace your Scala code. It is compatible with opentracing-java and is mostly built with opentracing-java wrap classes. Its important difference is the interface of io.opentracing.Tracer replaced by custom tagless final version of ru.dokwork.susanin.Tracer with a special method to run your function in terms of F inside the span:

val tracer: Tracer[F] = ???
def f(span: Span): F[A] = ???
val result: F[A] = tracer.newSpan("test")(f)

Installation

libraryDependencies += "ru.dokwork" %% "susanin" % "0.1.0"

How to use

The heart of this library is the concurrent package which contains instrumented versions of the ExecutionContext, ExecutorService and TraceableScheduledExecutorService.

IMPORTANT: you must wrap each of your ExecutionContexts by the TraceableExecutionContext. Otherwise the graph of final spans will be misleading!

to be continued...