Skip to main content
POST
/
v1
/
projects
/
{project_identifier}
/
spans
Create spans
curl --request POST \
  --url https://api.example.com/v1/projects/{project_identifier}/spans \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "name": "<string>",
      "context": {
        "trace_id": "<string>",
        "span_id": "<string>"
      },
      "span_kind": "<string>",
      "start_time": "2023-11-07T05:31:56Z",
      "end_time": "2023-11-07T05:31:56Z",
      "status_code": "<string>",
      "id": "",
      "parent_id": "<string>",
      "status_message": "",
      "attributes": {},
      "events": [
        {
          "name": "<string>",
          "timestamp": "2023-11-07T05:31:56Z",
          "attributes": {}
        }
      ]
    }
  ]
}
'
{
  "total_received": 123,
  "total_queued": 123
}

Path Parameters

project_identifier
string
required

The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

Body

application/json
data
Span · object[]
required

Response

Successful Response

total_received
integer
required

Total number of spans received

total_queued
integer
required

Number of spans successfully queued for insertion