GET
/
v2
/
projects
/
{project_id}
/
traces
/
{trace_id}
curl --request GET \
  --url https://api.acme.rungalileo.io/v2/projects/{project_id}/traces/{trace_id} \
  --header 'Galileo-API-Key: <api-key>'
{
  "spans": [
    {
      "spans": [
        {}
      ],
      "type": "workflow",
      "input": "<string>",
      "output": "<string>",
      "name": "",
      "created_at": "2023-11-07T05:31:56Z",
      "user_metadata": {},
      "tags": [
        "<string>"
      ],
      "status_code": 123,
      "metrics": {
        "duration_ns": 123
      },
      "id": "<string>",
      "trace_id": "<string>",
      "project_id": "<string>",
      "run_id": "<string>",
      "updated_at": "2023-11-07T05:31:56Z",
      "has_children": true,
      "metrics_batch_id": "<string>",
      "metric_info": {},
      "parent_id": "<string>"
    }
  ],
  "type": "trace",
  "input": "<string>",
  "output": "<string>",
  "name": "",
  "created_at": "2023-11-07T05:31:56Z",
  "user_metadata": {},
  "tags": [
    "<string>"
  ],
  "status_code": 123,
  "metrics": {
    "duration_ns": 123
  },
  "id": "<string>",
  "trace_id": "<string>",
  "project_id": "<string>",
  "run_id": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "has_children": true,
  "metrics_batch_id": "<string>",
  "metric_info": {}
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

trace_id
string
required
project_id
string
required

Response

200
application/json
Successful Response
input
string
required

Input to the trace or span.

id
string
required

Galileo ID of the trace or span

trace_id
string
required

Galileo ID of the trace containing the span (or the same value as id for a trace)

project_id
string
required

Galileo ID of the project associated with this trace or span

run_id
string
required

Galileo ID of the run (log stream or experiment) associated with this trace or span

spans
object[]
type
string
default:trace

Type of the trace or span.

Allowed value: "trace"
output
string | null

Output of the trace or span.

name
string
default:

Name of the trace or span.

created_at
string

Timestamp of the trace or span's creation.

user_metadata
object

Metadata associated with this trace or span.

tags
string[]

Tags associated with this trace or span.

status_code
integer | null

Status code of the trace or span. Used for logging failure or error states.

metrics
object

Metrics associated with this trace or span.

updated_at
string | null

Timestamp of the trace or span's last update

has_children
boolean | null

Whether or not this trace or span has child spans

metrics_batch_id
string | null

Galileo ID of the metrics batch associated with this trace or span

metric_info
object | null

Detailed information about the metrics associated with this trace or span