GET
/
v1
/
traces
/
{trace_id}
/
spans
/
{span_id}
curl --request GET \
  --url https://api.getscorecard.ai/v1/traces/{trace_id}/spans/{span_id} \
  --header 'X-API-Key: <api-key>'
{
  "Children": [
    {}
  ],
  "Timestamp": "2023-11-07T05:31:56Z",
  "TraceId": "<string>",
  "SpanId": "<string>",
  "ParentSpanId": "<string>",
  "TraceState": "<string>",
  "SpanName": "<string>",
  "SpanKind": "<string>",
  "ServiceName": "<string>",
  "ResourceAttributes": {},
  "ScopeName": "<string>",
  "ScopeVersion": "<string>",
  "SpanAttributes": {},
  "Duration": 123,
  "StatusCode": "<string>",
  "StatusMessage": "<string>",
  "Events.Timestamp": [
    "2023-11-07T05:31:56Z"
  ],
  "Events.Name": [
    "<string>"
  ],
  "Events.Attributes": [
    {}
  ],
  "Links.TraceId": [
    "<string>"
  ],
  "Links.SpanId": [
    "<string>"
  ],
  "Links.TraceState": [
    "<string>"
  ],
  "Links.Attributes": [
    {}
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

trace_id
string
required

The ID of the trace which the span is a part of.

span_id
string
required

The ID of the span to retrieve.

Response

200
application/json
Successful Response
Children
object[]
required
Timestamp
string
required
TraceId
string
required
SpanId
string
required
ParentSpanId
string
required
TraceState
string
required
SpanName
string
required
SpanKind
string
required
ServiceName
string
required
ResourceAttributes
object
required
ScopeName
string
required
ScopeVersion
string
required
SpanAttributes
object
required
Duration
integer
required
StatusCode
string
required
StatusMessage
string
required
Events.Timestamp
string[]
required
Events.Name
string[]
required
Events.Attributes
object[]
required