Tracing
Get Trace
Tracing
Get Trace
Retrieve specified trace
GET
/
v1
/
traces
/
{trace_id}
curl --request GET \
--url https://api.getscorecard.ai/v1/traces/{trace_id} \
--header 'X-API-Key: <api-key>'
{
"TraceId": "<string>",
"Start": "2023-11-07T05:31:56Z",
"End": "2023-11-07T05:31:56Z",
"Spans": [
{
"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 to retrieve spans from.
Response
200
application/json
Successful Response
Was this page helpful?
curl --request GET \
--url https://api.getscorecard.ai/v1/traces/{trace_id} \
--header 'X-API-Key: <api-key>'
{
"TraceId": "<string>",
"Start": "2023-11-07T05:31:56Z",
"End": "2023-11-07T05:31:56Z",
"Spans": [
{
"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": [
{}
]
}
]
}