Span

Get Span

Endpoint to retrieve a single Span by ID

post/span/{id}/get-item

Request

Path parameters

idstring uuid required

ID of the Span to retrieve

Request body

Example request

{
  "select": {
    "projectId": true,
    "primaryEntityId": true,
    "primaryEntityType": true
  }
}

Response

Successful response

Example response

{
  "data": {
    "projectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "primaryEntityId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "primaryEntityType": "Example text value",
    "startTime": "example_value",
    "endTime": "example_value",
    "startTimeUnixNano": "example_value",
    "durationUnixNano": 1000000,
    "endTimeUnixNano": "example_value",
    "traceId": "Example text value",
    "spanId": "Example text value",
    "sessionId": "Example text value",
    "parentSpanId": "Example text value",
    "traceState": "Example text value",
    "attributes": "example_value",
    "attributeKeys": [
      "item1",
      "item2",
      "item3"
    ],
    "entityKeys": [
      "item1",
      "item2",
      "item3"
    ],
    "serviceEntityKey": "Example text value",
    "hostEntityKey": "Example text value",
    "k8sPodEntityKey": "Example text value",
    "k8sNodeEntityKey": "Example text value",
    "k8sClusterEntityKey": "Example text value",
    "containerEntityKey": "Example text value",
    "events": [
      {
        "key": "value"
      },
      {
        "key2": "value2"
      }
    ],
    "links": {
      "key": "value",
      "nested": {
        "data": 123
      }
    },
    "statusCode": 42,
    "statusMessage": "Example text value",
    "name": "Example text value",
    "kind": "Example text value",
    "hasException": true,
    "isRootSpan": true,
    "isEntrySpan": true,
    "isLlmSpan": true,
    "llmSystem": "Example text value",
    "llmOperation": "Example text value",
    "llmRequestModel": "Example text value",
    "llmResponseModel": "Example text value",
    "llmAgentName": "Example text value",
    "llmToolName": "Example text value",
    "llmInputTokens": 42,
    "llmOutputTokens": 42,
    "llmTotalTokens": 42,
    "llmCost": 123.45,
    "llmConversationId": "Example text value",
    "llmUserId": "Example text value",
    "llmUserEmail": "Example text value",
    "llmTeam": "Example text value",
    "llmCallKind": "Example text value",
    "llmIssues": [
      "item1",
      "item2",
      "item3"
    ],
    "llmUserMessagePreview": "Example text value"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.