Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
Description
Patronus AI APITrace insights

Search Span Analysis

POST
/v1/span-analysis/search
/v1/span-analysis/search

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Request Body

application/jsonRequired

trace_idTrace Id

span_idSpan Id

start_timeStart Time

end_timeEnd Time

limitLimit

Default: 1000Maximum: 1000

offsetOffset

Default: 0Minimum: 0
curl -X POST "https://api.patronus.ai/v1/span-analysis/search" \
  -H "X-API-KEY: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "trace_id": "string",
    "span_id": "string",
    "start_time": "2019-08-24T14:15:22Z",
    "end_time": "2019-08-24T14:15:22Z",
    "limit": 1000,
    "offset": 0
  }'

Successful Response

{
  "span_analysis": [
    {
      "job_id": "string",
      "trace_id": "string",
      "span_id": "string",
      "analysis": "string",
      "created_at": "2019-08-24T14:15:22Z"
    }
  ]
}