curl --request POST \
--url https://api.helicone.ai/v1/trace/log \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"resourceSpans": [
{
"scopeSpans": [
{
"spans": [
{
"droppedLinksCount": 123,
"links": [
"<any>"
],
"status": {
"code": 123
},
"droppedEventsCount": 123,
"events": [
"<any>"
],
"droppedAttributesCount": 123,
"attributes": [
{
"value": {
"intValue": 123,
"stringValue": "<string>"
},
"key": "<string>"
}
],
"endTimeUnixNano": "<string>",
"startTimeUnixNano": "<string>",
"kind": 123,
"name": "<string>",
"spanId": "<string>",
"traceId": "<string>"
}
],
"scope": {
"version": "<string>",
"name": "<string>"
}
}
],
"resource": {
"droppedAttributesCount": 123,
"attributes": [
{
"value": {
"arrayValue": {
"values": [
{
"stringValue": "<string>"
}
]
},
"intValue": 123,
"stringValue": "<string>"
},
"key": "<string>"
}
]
}
}
]
}'
Log a trace to the Helicone API
curl --request POST \
--url https://api.helicone.ai/v1/trace/log \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"resourceSpans": [
{
"scopeSpans": [
{
"spans": [
{
"droppedLinksCount": 123,
"links": [
"<any>"
],
"status": {
"code": 123
},
"droppedEventsCount": 123,
"events": [
"<any>"
],
"droppedAttributesCount": 123,
"attributes": [
{
"value": {
"intValue": 123,
"stringValue": "<string>"
},
"key": "<string>"
}
],
"endTimeUnixNano": "<string>",
"startTimeUnixNano": "<string>",
"kind": 123,
"name": "<string>",
"spanId": "<string>",
"traceId": "<string>"
}
],
"scope": {
"version": "<string>",
"name": "<string>"
}
}
],
"resource": {
"droppedAttributesCount": 123,
"attributes": [
{
"value": {
"arrayValue": {
"values": [
{
"stringValue": "<string>"
}
]
},
"intValue": 123,
"stringValue": "<string>"
},
"key": "<string>"
}
]
}
}
]
}'
eu.api.helicone.ai
instead of
api.helicone.ai
.No content
Was this page helpful?