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": {},
  "data": {}
}'
{
  "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": {},
  "data": {},
  "account_id": "<string>",
  "created_by_user_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
name
string
required
trace_id
string
required

id for grouping traces together, uuid is recommended

Maximum length: 38
start_timestamp
string
required
parent_id
string

Reference to a parent span_id

end_timestamp
string
input
object
output
object
data
object

Response

200
application/json
Successful Response
id
string
required
name
string
required
trace_id
string
required

id for grouping traces together, uuid is recommended

Maximum length: 38
start_timestamp
string
required
account_id
string
required
created_by_user_id
string
required
object
enum<string>
default:span
Available options:
span
parent_id
string

Reference to a parent span_id

end_timestamp
string
input
object
output
object
data
object