POST
/
spans
{
  "id": "<string>",
  "trace_id": "<string>",
  "parent_id": "<string>",
  "name": "<string>",
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z",
  "input": {},
  "output": {},
  "data": {}
}

Body

application/json
trace_id
string
required

Unique identifier for the trace this span belongs to

name
string
required

Name that describes what operation this span represents

start_time
string<date-time>
required

The time the span started

id
string | null

Unique identifier for the span. If not provided, an ID will be generated.

parent_id
string | null

ID of the parent span if this is a child span in a trace

end_time
string<date-time> | null

The time the span ended

input

Input parameters or data for the operation

output

Output data resulting from the operation

data

Any additional metadata or context for the span

Response

Successful Response

id
string
required
trace_id
string
required

Unique identifier for the trace this span belongs to

name
string
required

Name that describes what operation this span represents

start_time
string<date-time>
required

The time the span started

parent_id
string | null

ID of the parent span if this is a child span in a trace

end_time
string<date-time> | null

The time the span ended

input

Input parameters or data for the operation

output

Output data resulting from the operation

data

Any additional metadata or context for the span