Traces

OTLP traces of the agent's execution for a session.

View in app: Open a session and select the Trace tab.

Note: Tracing must be enabled in the agent environment's privacy settings. Tracing is automatically enabled for all debugger sessions.

See Authentication for API key setup.


Get Trace#

Retrieve the trace for a specific session. Returns paginated spans sorted by start time.

GET /v1/sessions/{sessionId}/trace

Query Parameters#

ParameterTypeDescription
pageintegerPage number (default: 1)
limitintegerSpans per page (default: 500, max: 5000)

Example Response#

{ "data": { "trace": { "traceId": "abc123" }, "spans": [ { "spanId": "span_1", "traceId": "abc123", "parentId": null, "name": "session", "startTime": "2025-04-01T10:00:00.000Z", "endTime": "2025-04-01T10:01:30.000Z", "durationMs": 90000, "statusCode": "OK" } ] }, "metadata": { "page": 1, "limit": 500, "total": 42 } }
apisessionstracesdebugging