OpenInference JS
    Preparing search index...

    Manages trace-level aggregate state for error propagation and span tracking.

    Tracking strategy to prevent memory leaks:

    • All spans are tracked at onStart (we need the count for cleanup)
    • At onEnd, we check if the span is an AI SDK span and mark the trace accordingly
    • Error state is only aggregated for AI SDK traces
    • Non-AI SDK traces are cleaned up immediately when they complete
    Index

    Constructors

    Methods

    Constructors

    Methods