Fetch a single session by its GlobalID or user-provided session_id string.
Phoenix server >= 13.5.0
import { getSession } from "@arizeai/phoenix-client/sessions";const session = await getSession({ sessionId: "my-session-id" });console.log(session.traces.length); Copy
import { getSession } from "@arizeai/phoenix-client/sessions";const session = await getSession({ sessionId: "my-session-id" });console.log(session.traces.length);
Fetch a single session by its GlobalID or user-provided session_id string.