hs-opentelemetry-utils-exceptions-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

OpenTelemetry.Utils.Exceptions

Synopsis

Documentation

inSpanM Source #

Arguments

:: (MonadIO m, MonadMask m, HasCallStack) 
=> Tracer 
-> Text

The name of the span. This may be updated later via updateName

-> SpanArguments

Additional options for creating the span, such as SpanKind, span links, starting attributes, etc.

-> m a

The action to perform. inSpan will record the time spent on the action without forcing strict evaluation of the result. Any uncaught exceptions will be recorded and rethrown.

-> m a 

The simplest function for annotating code with trace information.

inSpanM' Source #

Arguments

:: (MonadIO m, MonadMask m, HasCallStack) 
=> Tracer 
-> Text

The name of the span. This may be updated later via updateName

-> SpanArguments 
-> (Span -> m a) 
-> m a 

inSpanM'' Source #

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 updateName

-> SpanArguments 
-> (Span -> m a) 
-> m a