| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenTelemetry.Utils.Exceptions
Synopsis
- inSpanM :: (MonadIO m, MonadMask m, HasCallStack) => Tracer -> Text -> SpanArguments -> m a -> m a
- inSpanM' :: (MonadIO m, MonadMask m, HasCallStack) => Tracer -> Text -> SpanArguments -> (Span -> m a) -> m a
- inSpanM'' :: (MonadMask m, HasCallStack, MonadIO m) => Tracer -> CallStack -> Text -> SpanArguments -> (Span -> m a) -> m a
Documentation
Arguments
| :: (MonadIO m, MonadMask m, HasCallStack) | |
| => Tracer | |
| -> Text | The name of the span. This may be updated later via |
| -> SpanArguments | Additional options for creating the span, such as |
| -> m a | The action to perform. |
| -> m a |
The simplest function for annotating code with trace information.
Arguments
| :: (MonadIO m, MonadMask m, HasCallStack) | |
| => Tracer | |
| -> Text | The name of the span. This may be updated later via |
| -> SpanArguments | |
| -> (Span -> m a) | |
| -> m a |
Arguments
| :: (MonadMask m, HasCallStack, MonadIO m) | |
| => Tracer | |
| -> CallStack | Record the location of the span in the codebase using the provided callstack for source location info. |
| -> Text | The name of the span. This may be updated later via |
| -> SpanArguments | |
| -> (Span -> m a) | |
| -> m a |