Traces
Get a trace
GET
Returns a trace with its spans, correlated logs and correlated errors.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
traceId*stringMatch
^[0-9a-f]{1,32}$application/json- response
traceId*stringprojectIds*array<string>startTime*stringFormat
date-timeendTime*stringFormat
date-timedurationMs*numberspanCount*integererrorCount*integerspans*array<>logs*array<>logCount*integererrors*array<>curl -X GET 'https://api.example.com/api/v1/traces/string'Example Response
{
"traceId": "string",
"projectIds": [
"string"
],
"startTime": "2019-08-24T14:15:22Z",
"endTime": "2019-08-24T14:15:22Z",
"durationMs": 0,
"spanCount": 0,
"errorCount": 0,
"spans": [
{
"projectId": "string",
"traceId": "string",
"spanId": "string",
"parentSpanId": "string",
"segmentId": "string",
"isRoot": true,
"isTransaction": true,
"transaction": "string",
"name": "string",
"op": "string",
"category": "string",
"description": "string",
"serverAddress": "string",
"kind": "internal",
"status": "unset",
"statusMessage": "string",
"startTime": "2019-08-24T14:15:22Z",
"endTime": "2019-08-24T14:15:22Z",
"durationNs": 0,
"environment": "string",
"platform": "server",
"httpMethod": "string",
"httpRoute": "string",
"httpStatusCode": 0,
"dbSystem": "string",
"urlPath": "string",
"userId": "string",
"measurements": {
"property1": 0,
"property2": 0
},
"attributes": {
"property1": "string",
"property2": "string"
},
"resourceAttributes": {
"property1": "string",
"property2": "string"
},
"events": [
{
"name": "string",
"timestamp": "2019-08-24T14:15:22Z",
"attributes": {
"property1": "string",
"property2": "string"
}
}
]
}
],
"logs": [
{
"id": "string",
"projectId": "string",
"timestamp": "2019-08-24T14:15:22Z",
"observedAt": "2019-08-24T14:15:22Z",
"severity": "trace",
"severityNumber": 0,
"body": "string",
"environment": "string",
"platform": "server",
"traceId": "string",
"spanId": "string",
"scopeName": "string",
"attributes": {
"property1": "string",
"property2": "string"
},
"resourceAttributes": {
"property1": "string",
"property2": "string"
}
}
],
"logCount": 0,
"errors": [
{
"id": "string",
"projectId": "string",
"fingerprint": "string",
"timestamp": "2019-08-24T14:15:22Z",
"environment": "string",
"platform": "server",
"level": "warn",
"handled": true,
"type": "string",
"message": "string",
"culprit": "string",
"stack": "string",
"rawStack": "string",
"transaction": "string",
"traceId": "string",
"spanId": "string",
"userId": "string",
"attributes": {
"property1": "string",
"property2": "string"
},
"resourceAttributes": {
"property1": "string",
"property2": "string"
},
"groupId": "string"
}
]
}