POST
/
v2
/
spans
curl --request POST \
  --url https://sdk.playerzero.app/v2/spans \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-PzBucket: <x-pzbucket>' \
  --header 'X-PzProd: <x-pzprod>' \
  --data '[
  {
    "id": "<string>",
    "traceId": "<string>",
    "spanId": "<string>",
    "type": "<string>",
    "value": "<string>",
    "start": "<string>",
    "end": "<string>",
    "error": "<string>",
    "properties": {}
  }
]'

This is an advanced feature. We recommend exploring our SDKs and other integrations first before implementing a direct integration with our API endpoint. The most common use case for this endpoint is to send errors and tracked events from mobile and iOS devices.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-PzProd
boolean
required

Specifies whether this data is coming from a production source or not.

X-PzBucket
string
required

The name of the dataset you'd like to associate this data to. Not required, but highly recommended.

Body

application/json · object[]

The body is of type object[].

Response

204

Success, no content is expected in response