hotel-california-0.0.6.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

HotelCalifornia.Tracing

Synopsis

Documentation

inSpan :: MonadUnliftIO m => Text -> m a -> m a Source #

inSpan' :: MonadUnliftIO m => Text -> (Span -> m a) -> m a Source #

withGlobalTracing :: MonadUnliftIO m => (Maybe HoneycombTarget -> m a) -> m a Source #

Initialize the global tracing provider for the application and run an action (that action is generally the entry point of the application), cleaning up the provider afterwards.

This also sets up an empty context (creating a new trace ID).

inSpanWith' :: MonadUnliftIO m => Text -> SpanArguments -> (Span -> m a) -> m a Source #

defaultSpanArguments :: SpanArguments #

Smart constructor for SpanArguments providing reasonable values for most Spans created that are internal to an application.

Defaults: