evalution
    Preparing search index...

    Interface Span

    A span in a Trace. Spans form a tree via parentId. Durations are derived from startTime and endTime; an in-progress span has no endTime yet.

    interface Span {
        attributes?: Record<string, unknown>;
        endTime?: number;
        errorMessage?: string;
        id: string;
        kind: SpanKind;
        llm?: LLMSpanDetails;
        name: string;
        parentId?: string;
        prompt?: PromptID;
        startTime: number;
        status?: "ok" | "error";
        tool?: ToolSpanDetails;
        traceId: string;
    }
    Index

    Properties

    attributes?: Record<string, unknown>

    Free-form attributes to show in the span's details pane.

    endTime?: number

    End timestamp in milliseconds since epoch, or undefined while running.

    errorMessage?: string

    Error message if status is 'error'.

    id: string
    kind: SpanKind

    LLM-specific details (present for chat/completion/embedding spans).

    name: string
    parentId?: string

    undefined for the root span of the trace.

    prompt?: PromptID

    The prompt this span is attributed to, if any.

    Stored as emitted (evalution.prompt.id plus optional evalution.prompt.provider.id): a PromptID whose id is global unless providerId is set. The server resolves it against the prompt registry to a provider-scoped reference when a trace is served.

    startTime: number

    Start timestamp in milliseconds since epoch.

    status?: "ok" | "error"
    traceId: string