curl --request POST \
--url https://api.promptlayer.com/spans-bulk \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"spans": [
{
"name": "<string>",
"context": {
"trace_id": "<string>",
"span_id": "<string>",
"trace_state": "<string>"
},
"kind": "SpanKind.CLIENT",
"parent_id": "<string>",
"start_time": 123,
"end_time": 123,
"status": {
"status_code": "StatusCode.ERROR",
"description": "<string>"
},
"attributes": {},
"events": [],
"links": [],
"resource": {
"attributes": {},
"schema_url": "<string>"
},
"log_request": {
"provider": "<string>",
"model": "<string>",
"input": {
"content": [
{
"type": "text",
"text": "<string>"
}
],
"input_variables": [],
"template_format": "f-string",
"type": "completion"
},
"output": {
"content": [
{
"type": "text",
"text": "<string>"
}
],
"input_variables": [
"<string>"
],
"template_format": "f-string",
"type": "completion"
},
"request_start_time": "2023-11-07T05:31:56Z",
"request_end_time": "2023-11-07T05:31:56Z",
"parameters": {},
"tags": [],
"metadata": {},
"prompt_name": "<string>",
"prompt_id": 123,
"prompt_version_number": 1,
"prompt_input_variables": {},
"input_tokens": 0,
"output_tokens": 0,
"price": 0,
"function_name": "",
"score": 0
}
}
]
}'