Spans
Create Span
Dataset Items
Evaluations
Evaluation Items
Spans
Create Span
POST
/
v5
/
spans
curl --request POST \
--url https://api.egp.scale.com/v5/spans \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE"
}'
{
"id": "<string>",
"object": "span",
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE",
"account_id": "<string>",
"created_by_user_id": "<string>"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.egp.scale.com/v5/spans \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE"
}'
{
"id": "<string>",
"object": "span",
"name": "<string>",
"trace_id": "<string>",
"parent_id": "<string>",
"start_timestamp": "2023-11-07T05:31:56Z",
"end_timestamp": "2023-11-07T05:31:56Z",
"input": {},
"output": {},
"metadata": {},
"status": "SUCCESS",
"type": "STANDALONE",
"account_id": "<string>",
"created_by_user_id": "<string>"
}