OpenInference JS
    Preparing search index...
    ReadWriteSpan: Mutable<ReadableSpan>

    A ReadWriteSpan is a mutable ReadableSpan. Within the OpenTelemetry SpanProcessors, the spans are typed as readonly However, mutation of spans in processors has been added to the OTEL spec and implementation is in progress

    https://github.com/open-telemetry/opentelemetry-specification/pull/4024 We use this type to directly mutate the attributes of spans in the OpenInferenceSpanProcessor