sessionId. The session of a trace is the sessionId of its root span, or else of its earliest span that has one. Right: read.
Find sessions
POST /v1/sessions/find returns sessions in pages, newest first.
The
nextCursor of the page before (Lists and cursors).firstInput and lastOutput follow the preview rule of trace lists: the text of the root span, or else of another span of the trace.
Get one session
GET /v1/sessions/:id returns {"session": session, "traces": [trace]}: the session row, and every trace of the session, oldest first (by start, then trace id). No trace has this session id: 404.
The traces have the fields of a trace. For a very large session, page /v1/traces/find with filter.sessionId instead.
The scores on a session itself: GET /v1/sessions/:id/scores.
Sessions and scores
A guide with real sessions and scores.
Scores
Write and read scores on a session.