Span processor that forwards to a list of processors that can grow after the owning provider is constructed.

OpenTelemetry 2.x providers accept span processors only at construction time. Include one of these in the provider's spanProcessors and pass its add method as registerSpanProcessor so LiveKit Cloud tracing can attach its processors later.

Implements

  • SpanProcessor

Constructors

Methods

  • Adds a processor that receives all span events from this point on.

    Parameters

    • processor: SpanProcessor

    Returns void

  • Parameters

    • span: Span
    • parentContext: Context

    Returns void