hs-opentelemetry-api
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

OpenTelemetry.Contrib.CarryOns

Description

Carry-ons are extra attributes merged into spans completed within a thread's context, so values can flow down a trace without attaching them to every span.

Synopsis

Documentation

alterCarryOns :: MonadIO m => (AttributeMap -> AttributeMap) -> m () Source #

Since: 0.4.0.0

withCarryOnProcessor :: SpanProcessor -> SpanProcessor Source #

"Carry ons" are extra attributes that are added to every span that is completed for within a thread's context. This helps us propagate attributes across a trace without having to manually add them to every span.

Be cautious about adding too many additional attributes via carry ons. The attributes are added to every span, and will be discarded if the span has attributes that exceed the configured attribute limits for the configured TracerProvider.

Since: 0.4.0.0