POST
/
v1
/
trace
/
log
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>"
          }
        ]
      }
    }
  ]
}'

Authorizations

authorization
string
header
required

Body

application/json
resourceSpans
object[]
required