curl --request GET \
--url https://app.atla-ai.com/api/sdk/v1/traces/{traceId} \
--header 'Authorization: Bearer <token>'{
"trace": {
"id": "<string>",
"environment": "PROD",
"isSuccess": true,
"isCompleted": true,
"stepCount": 123,
"startedAt": "<string>",
"endedAt": "<string>",
"durationSeconds": 123,
"ingestedAt": "<string>",
"metadata": {},
"spans": [
{
"id": "<string>",
"traceId": "<string>",
"parentSpanId": "<string>",
"spanName": "<string>",
"startTimestamp": "<string>",
"endTimestamp": "<string>",
"isException": true,
"otelEvents": [
"<unknown>"
],
"annotations": [
{
"spanId": "<string>",
"failureMode": "<string>",
"atlaCritique": "<string>",
"id": "<string>"
}
]
}
],
"customMetricValues": [
{
"id": "<string>",
"traceId": "<string>",
"customMetricId": "<string>",
"value": "<string>",
"customMetric": {
"id": "<string>",
"name": "<string>",
"dataType": "BOOLEAN"
}
}
]
}
}Get a single trace by ID
curl --request GET \
--url https://app.atla-ai.com/api/sdk/v1/traces/{traceId} \
--header 'Authorization: Bearer <token>'{
"trace": {
"id": "<string>",
"environment": "PROD",
"isSuccess": true,
"isCompleted": true,
"stepCount": 123,
"startedAt": "<string>",
"endedAt": "<string>",
"durationSeconds": 123,
"ingestedAt": "<string>",
"metadata": {},
"spans": [
{
"id": "<string>",
"traceId": "<string>",
"parentSpanId": "<string>",
"spanName": "<string>",
"startTimestamp": "<string>",
"endTimestamp": "<string>",
"isException": true,
"otelEvents": [
"<unknown>"
],
"annotations": [
{
"spanId": "<string>",
"failureMode": "<string>",
"atlaCritique": "<string>",
"id": "<string>"
}
]
}
],
"customMetricValues": [
{
"id": "<string>",
"traceId": "<string>",
"customMetricId": "<string>",
"value": "<string>",
"customMetric": {
"id": "<string>",
"name": "<string>",
"dataType": "BOOLEAN"
}
}
]
}
}API key authentication using Bearer token
spans, annotations, customMetrics Successfully retrieved trace with complete data
Show child attributes
PROD, DEV Show child attributes
Show child attributes