Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
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.
Settings | |
|
Instances
IsString Settings | Generates settings with the given string as hostname. |
Defined in Monitor.Tracing.Zipkin fromString :: String -> Settings # |
Useful re-exports
module Monitor.Tracing