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

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.

License

Notifications You must be signed in to change notification settings

dokwork/susanin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages