mu-tracing-0.4.0.0: Tracing support for Mu
Safe HaskellNone
LanguageHaskell2010

Mu.Instrumentation.Tracing

Description

This module injects distributed tracing for Mu servers. Currently it only supports Zipkin as backend.

In order to use this module, you need to follow these steps:

  1. Establish a connection with newZipkin.
  2. Wrap the server using zipkin, giving information for the root.
  3. Run the server using the transformer version of your protocol, like |grpcAppTrans|.
Synopsis

Distributed tracing

zipkin :: (MonadIO m, MonadTrace m) => MuTracing -> ServerT chn i p m topHs -> ServerT chn i p m topHs Source #

Wraps a server to do distributed tracing using Zipkin as backend.

runZipkin :: Zipkin -> TraceT m a -> m a Source #

Runs with a given Zipkin connection. You can create one with newZipkin.

Establish connection

newZipkin :: Settings -> IO Zipkin Source #

Create a new connection to Zipkin.

data Settings #

Zipkin creation settings.

Constructors

Settings 

Fields

Instances

Instances details
IsString Settings

Generates settings with the given string as hostname.

Instance details

Defined in Monitor.Tracing.Zipkin

Useful re-exports