Skip to Content
OpenPerf

Traces

Get a trace

GET
/api/v1/traces/{traceId}

Returns a trace with its spans, correlated logs and correlated errors.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Path Parameters

traceId*string
Match^[0-9a-f]{1,32}$

Response Body

application/json
  1. response
traceId*string
projectIds*array<string>
startTime*string
Formatdate-time
endTime*string
Formatdate-time
durationMs*number
spanCount*integer
errorCount*integer
spans*array<>
logs*array<>
logCount*integer
errors*array<>
Example Request
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"
    }
  ]
}