Create Span
POST/spans
Create Span
curl http://localhost:5003/spans \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $AGENTEX_SDK_API_KEY" \
-d '{
"name": "name",
"start_time": "2019-12-27T18:11:19.117Z",
"trace_id": "trace_id"
}'{
"id": "id",
"name": "name",
"start_time": "2019-12-27T18:11:19.117Z",
"trace_id": "trace_id",
"data": {
"foo": "bar"
},
"end_time": "2019-12-27T18:11:19.117Z",
"input": {
"foo": "bar"
},
"output": {
"foo": "bar"
},
"parent_id": "parent_id",
"task_id": "task_id"
}Returns Examples
{
"id": "id",
"name": "name",
"start_time": "2019-12-27T18:11:19.117Z",
"trace_id": "trace_id",
"data": {
"foo": "bar"
},
"end_time": "2019-12-27T18:11:19.117Z",
"input": {
"foo": "bar"
},
"output": {
"foo": "bar"
},
"parent_id": "parent_id",
"task_id": "task_id"
}