v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
LLM Observability

List LLM Observability experiment events (v2)

Retrieve spans and experiment-level summary metrics for a given experiment. Returns the full events payload without pagination. Deprecated: use ListLLMObsExperimentEventsV3 instead.

get/api/v2/llm-obs/v2/experiments/{experiment_id}/events

Path parameters

experiment_idstring required

The ID of the LLM Observability experiment.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "spans": [
        {
          "duration": 1500000000,
          "eval_metrics": [
            {
              "assessment": "pass",
              "eval_source_type": "managed",
              "id": "00000000-0000-0000-0000-000000000001",
              "label": "faithfulness",
              "metric_source": "custom",
              "metric_type": "score",
              "span_id": "span-7a1b2c3d",
              "timestamp_ms": 1705314600000,
              "trace_id": "abc123def456"
            }
          ],
          "id": "00000000-0000-0000-0000-000000000001",
          "meta": {
            "error": {
              "message": "Model response timed out",
              "stack": "Traceback (most recent call last):\n  File \"main.py\", line 10, in <module>\n    response = model.generate(input)\n  File \"model.py\", line 45, in generate\n    raise TimeoutError(\"Model response timed out\")\nTimeoutError: Model response timed out",
              "type": "TimeoutError"
            }
          },
          "name": "llm_call",
          "span_id": "span-7a1b2c3d",
          "start_ns": 1705314600000000000,
          "status": "ok",
          "trace_id": "abc123def456"
        }
      ],
      "summary_metrics": [
        {
          "assessment": "pass",
          "eval_source_type": "managed",
          "id": "00000000-0000-0000-0000-000000000001",
          "label": "faithfulness",
          "metric_source": "custom",
          "metric_type": "score",
          "span_id": "span-7a1b2c3d",
          "timestamp_ms": 1705314600000,
          "trace_id": "abc123def456"
        }
      ]
    },
    "id": "3fd6b5e0-8910-4b1c-a7d0-5b84de329012",
    "type": "experiment_events"
  }
}