Copyright | (c) Ian Duncan 2021 |
---|---|
License | BSD-3 |
Maintainer | Ian Duncan |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The recommended tracing interface for application developers
See OpenTelemetry.Trace for an interface that's more lower-level, but more flexible.
Synopsis
- inSpan :: (MonadUnliftIO m, MonadTracer m, HasCallStack) => Text -> SpanArguments -> m a -> m a
- inSpan' :: (MonadUnliftIO m, MonadTracer m, HasCallStack) => Text -> SpanArguments -> (Span -> m a) -> m a
- inSpan'' :: (MonadUnliftIO m, MonadTracer m, HasCallStack) => CallStack -> Text -> SpanArguments -> (Span -> m a) -> m a
- class Monad m => MonadTracer m where
Documentation
inSpan :: (MonadUnliftIO m, MonadTracer m, HasCallStack) => Text -> SpanArguments -> m a -> m a Source #
inSpan' :: (MonadUnliftIO m, MonadTracer m, HasCallStack) => Text -> SpanArguments -> (Span -> m a) -> m a Source #
inSpan'' :: (MonadUnliftIO m, MonadTracer m, HasCallStack) => CallStack -> Text -> SpanArguments -> (Span -> m a) -> m a Source #
class Monad m => MonadTracer m where Source #
This is generally scoped by Monad stack to do different things
Instances
MonadTracer m => MonadTracer (IdentityT m) Source # | |
MonadTracer m => MonadTracer (ReaderT r m) Source # | |