hs-opentelemetry-api-0.1.0.0: OpenTelemetry API for use by libraries for direct instrumentation or wrapper packages.
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenTelemetry.Contrib.SpanTraversals

Synopsis

Documentation

alterSpansUpwards :: MonadIO m => Span -> st -> (st -> ImmutableSpan -> (IterationInstruction st, ImmutableSpan)) -> m st Source #

Alter traces upwards from the provides span to the highest available mutable span. Only mutable spans may be altered.

The step value indicates whether the desired topmost span has been reached or not. This function will continue to iterate upwards until either a span that cannot be mutated has been reached, or there are no more parent spans remaining.

data IterationInstruction a Source #

Constructors

Continue a 
Halt