Safe Haskell | None |
---|---|
Language | Haskell2010 |
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:
Synopsis
- data MuTracing = MuTracing {}
- zipkin :: (MonadIO m, MonadTrace m) => MuTracing -> ServerT chn i p m topHs -> ServerT chn i p m topHs
- runZipkin :: Zipkin -> TraceT m a -> m a
- newZipkin :: Settings -> IO Zipkin
- defaultZipkinSettings :: Settings
- data Settings = Settings {
- settingsHostname :: !(Maybe HostName)
- settingsPort :: !(Maybe PortNumber)
- settingsEndpoint :: !(Maybe Endpoint)
- settingsManager :: !(Maybe Manager)
- settingsPublishPeriod :: !(Maybe NominalDiffTime)
- module Monitor.Tracing
Distributed tracing
Constructors
MuTracing | |
Fields |
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.
Establish connection
Zipkin
creation settings.
Constructors
Settings | |
Fields
|
Instances
IsString Settings | Generates settings with the given string as hostname. |
Defined in Monitor.Tracing.Zipkin Methods fromString :: String -> Settings # |
Useful re-exports
module Monitor.Tracing