Arize Phoenix TS
    Preparing search index...

    A single turn in a session, representing one trace's root span input/output.

    Note: A "turn" is derived from a trace's root span. For input/output to appear, the root span must have input.value and output.value attributes set (per OpenInference semantic conventions). This typically requires instrumentation that records these attributes on the top-level span.

    this interface is experimental and may change in the future

    interface SessionTurn {
        endTime: string;
        input?: SessionTurnIO;
        output?: SessionTurnIO;
        rootSpan?: {
            attributes?: { [key: string]: unknown };
            context: { span_id: string; trace_id: string };
            end_time: string;
            events?: {
                attributes?: { [key: string]: unknown };
                name: string;
                timestamp: string;
            }[];
            id?: string;
            name: string;
            parent_id?: string
            | null;
            span_kind: string;
            start_time: string;
            status_code: string;
            status_message?: string;
        };
        startTime: string;
        traceId: string;
    }
    Index

    Properties

    endTime: string

    ISO 8601 timestamp of when the trace ended

    Input extracted from the root span's attributes

    output?: SessionTurnIO

    Output extracted from the root span's attributes

    rootSpan?: {
        attributes?: { [key: string]: unknown };
        context: { span_id: string; trace_id: string };
        end_time: string;
        events?: {
            attributes?: { [key: string]: unknown };
            name: string;
            timestamp: string;
        }[];
        id?: string;
        name: string;
        parent_id?: string
        | null;
        span_kind: string;
        start_time: string;
        status_code: string;
        status_message?: string;
    }

    The full root span, if found

    Type Declaration

    • Optionalattributes?: { [key: string]: unknown }

      Attributes

      Span attributes

    • context: { span_id: string; trace_id: string }

      Span context containing trace_id and span_id

      • span_id: string

        Span Id

        OpenTelemetry span ID

      • trace_id: string

        Trace Id

        OpenTelemetry trace ID

    • end_time: string

      End Time Format: date-time

      End time of the span (must be timezone-aware)

    • Optionalevents?: { attributes?: { [key: string]: unknown }; name: string; timestamp: string }[]

      Events

      Span events

    • Optionalid?: string

      Id

      Span Global ID, distinct from the OpenTelemetry span ID

      
      
    • name: string

      Name

      Name of the span operation

    • Optionalparent_id?: string | null

      Parent Id

      OpenTelemetry span ID of the parent span

    • span_kind: string

      Span Kind

      Type of work that the span encapsulates

    • start_time: string

      Start Time Format: date-time

      Start time of the span (must be timezone-aware)

    • status_code: string

      Status Code

      Status code of the span

    • Optionalstatus_message?: string

      Status Message

      Status message

      
      
    startTime: string

    ISO 8601 timestamp of when the trace started

    traceId: string

    The trace ID for this turn