Tracing
Get Trace Span
Tracing
Get Trace Span
Retrieve specified span
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
Path Parameters
The ID of the trace which the span is a part of.
The ID of the span to retrieve.
Response
200
application/json
Successful Response
Was this page helpful?
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": [
{}
]
}