GET
/
v2
/
projects
/
{project_id}
/
spans
/
{span_id}
curl --request GET \
  --url https://api.acme.rungalileo.io/v2/projects/{project_id}/spans/{span_id} \
  --header 'Galileo-API-Key: <api-key>'
{
  "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>"
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

span_id
string
required
project_id
string
required

Response

200
application/json
Successful Response
input
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

parent_id
string
required

Galileo ID of the parent of this span

spans
object[]
type
string
default:workflow

Type of the trace or span.

Allowed value: "workflow"
output

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