Obtém os detalhes do trace.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
xtrace:SearchTrace |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| TraceID |
string |
Sim |
O ID do trace, que é o identificador exclusivo do trace. Você pode obter o ID do trace na página Trace Explorer no console do Managed Service for OpenTelemetry ou chamando a operação SearchTraces. |
1c6881aab84191a4****** |
| AppType |
string |
Não |
O tipo da aplicação. Você pode deixar este parâmetro vazio ou definir o valor como
|
XTRACE |
| RegionId |
string |
Sim |
O ID da região. |
cn-beijing |
| PageNumber |
integer |
Não |
O número da página. |
1 |
| PageSize |
string |
Não |
O número de entradas em cada página. Valor máximo: 100. |
5 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
1E2B6A4C-6B83-4062-8B6F-AEEC1F****** |
| Spans |
object |
||
| Span |
array<object> |
A lista de spans. |
|
|
array<object> |
A lista de spans. |
||
| SpanId |
string |
The span ID. |
fec891bb8f8XXX |
| HaveStack |
boolean |
Indicates whether the span has child spans. Valid values:
|
false |
| ServiceIp |
string |
The IP address of the server on which the span resides. |
192.168.XXX.XXX |
| OperationName |
string |
The name of the span. |
/api |
| ParentSpanId |
string |
The ID of the parent span. |
fec891bb8f8XXX |
| ResultCode |
string |
The response code. |
200 |
| Duration |
integer |
The duration of the span. Unit: milliseconds. |
1000 |
| RpcId |
string |
The parent-child and sibling relationship between spans. For example, span 1.1 is the parent of span 1.1.1, and span 1.1.2 and span 1.1.1 are siblings. |
1.1 |
| Timestamp |
integer |
The timestamp when the span was generated. Unit: microseconds. |
1689845513298000 |
| ServiceName |
string |
The name of the application. |
server1 |
| TraceID |
string |
The trace ID, which is the unique identifier of the trace. |
1c6881aab84191a4 |
| TagEntryList |
object |
||
| TagEntry |
array<object> |
The tags. |
|
|
object |
The tags in the span. |
||
| Key |
string |
The tag key of the span. |
logLevel |
| Value |
string |
The tag value of the span. |
Warning |
| LogEventList |
object |
||
| LogEvent |
array<object> |
The log events. |
|
|
array<object> |
The log events in the trace. |
||
| Timestamp |
integer |
The timestamp when the log event was generated. Unit: microseconds. |
1689845513298000 |
| TagEntryList |
object |
||
| TagEntry |
array<object> |
The tags. |
|
|
object |
The tags in the log event. |
||
| Key |
string |
The tag key of the log event. |
logLevel |
| Value |
string |
The tag value of the log event. |
Warning |
| StatusCode |
integer |
The status code. |
200 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "1E2B6A4C-6B83-4062-8B6F-AEEC1F******",
"Spans": {
"Span": [
{
"SpanId": "fec891bb8f8XXX",
"HaveStack": false,
"ServiceIp": "192.168.XXX.XXX",
"OperationName": "/api",
"ParentSpanId": "fec891bb8f8XXX",
"ResultCode": "200",
"Duration": 1000,
"RpcId": "1.1",
"Timestamp": 1689845513298000,
"ServiceName": "server1",
"TraceID": "1c6881aab84191a4",
"TagEntryList": {
"TagEntry": [
{
"Key": "logLevel",
"Value": "Warning"
}
]
},
"LogEventList": {
"LogEvent": [
{
"Timestamp": 1689845513298000,
"TagEntryList": {
"TagEntry": [
{
"Key": "logLevel",
"Value": "Warning"
}
]
}
}
]
},
"StatusCode": 200
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.