TAS获取调用链详情
接口功能介绍
调用 getTraceDetail 接口获取调用链详情
接口约束
URI
GET /v1/transactions/trace
路径参数
无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionCode | 是 | String | 资源池编码 | bbd132b51***e92ac1100 | |
traceId | 是 | String | 调用链ID | 92d761f179**57dea1565a4 | |
projectCode | 是 | String | 日志项目编码 | RNfSlzALYT | |
timestamp | 是 | String | 时间戳 | 1676362658000 |
请求参数
请求头header参数
无
请求体body参数
无
响应参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
code | Integer | 响应状态码。0:成功 | 0 | ||
msg | String | 响应描述 | |||
data | Object | 调用链详情 | SpanDTO |
表 SpanDTO
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
traceId | String | 调用链ID | 212ef3c17898****8988de | ||
id | String | ID | c457aa04a4fee6 | ||
name | String | 名称 | test_name | ||
type | String | 调用类型 | db | ||
serviceCode | String | 应用编码 | msap-pipe-default | ||
timestamp | String | 时间 | 2023-08-08 11:46:25.756000000 | ||
duration | Double | 耗时(ms) | 0 | ||
httpUrl | String | http请求地址 | http://10.50.28.11/api/openApi/paas/paasagent/http/FCDD82A43EBD5BA277F3A472CA22625679F2D9A | ||
outcome | String | outcome输出(success/failure/unknown) | success | ||
responseStatusCode | Integer | http响应状态码 | 200 | ||
clientAddress | String | 客户端地址(IP/hostname) | 10.50.28.11:8971 | ||
clientPort | Integer | 客户端端口 | 8971 | ||
serverAddress | String | 服务端地址(IP/hostname) | 10.50.28.11:8972 | ||
serverPort | String | 服务端端口 | 8972 | ||
dstServiceResource | String | 目标服务Resource | 10.50.28.11:8971 | ||
dstServiceName | String | 目标服务名称 | redis | ||
dstServiceType | String | 目标服务类型 | db | ||
parentId | String | 父ID | 89ec31e015 | ||
agentName | String | Agent名称 | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.1938.62 | ||
processId | Integer | 进程ID | |||
1 | |||||
processCommandLine | String | 进程命令 | /usr/local/jdk1.8.0_221/jre:bin:java -Dlog4j2.formatMsgNoLookups=true -Dfile.encoding=UTF-8 -javaagent:/ctg-mse-gateway-controller/agent/ctyunArmsAgent.jar | ||
threadId | Integer | 线程ID | 861 | ||
threadName | String | 线程名 | http-nio-27150-exec-10 | ||
hostName | String | 主机名 | mse-gateway-controller-76fd4d9d49-4mf7s | ||
hostArchitecture | String | 主机CPU架构 | amd64 | ||
dbConnectString | String | DB连接串 | redis://10.50.28.245:6375 | ||
dbType | String | DB类型 | redis | ||
dbUser | String | DB用户 | root | ||
dbOperation | String | DB操作 | EVALSHA | ||
dbStatement | String | sql语句 | EVALSHA 065ce216750fa703e6f60302be400d42676231a0 4 orca.task.queue-hz3.queue orca.task.queue-hz3.unacked orca.task.queue-hz3.locks orca.task.queue-hz3.messages | ||
messagingSystem | String | 消息系统 | kafka | ||
messagingOperation | String | 消息操作 | process | ||
messagingDestinationKind | String | 消息目的类型 | topic | ||
messagingQueueName | String | 消息队列名称 | test_messagingName | ||
extInfos | Array of Objects | 扩展信息 | ExtInfo |
表 ExtInfo
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
category | String | 分类 | |||
items | Array of Objects | 扩展信息列表 | ExtItem |
表 ExtItem
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
label | String | 标签 | name | ||
value | String | 标签值 | java_test_application |
请求示例
请求url
https://tas-global.ctapi.ctyun.cn/v1/transactions/trace?regionCode=bbd132b5***11e942ac1100&traceId=92d761f***957dea1565a4
请求头header
请求体body
响应示例
{
"code": 0,
"msg": "string",
"data":
{
"agentName": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.1938.62",
"agentVersion": "",
"children": [],
"clientAddress": "10.50.28.11:8971",
"clientPort": 8971,
"dbConnectString": "redis://10.50.28.245:6375",
"dbInstance": "",
"dbOperation": "EVALSHA",
"dbStatement": "EVALSHA 065ce216750fa703e6f60302be400d42676231a0 4 orca.task.queue-hz3.queue orca.task.queue-hz3.unacked orca.task.queue-hz3.locks orca.task.queue-hz3.messages",
"dbType": "redis",
"dbUser": "root",
"deployment": "_ctrace_",
"dstServiceName": "redis",
"dstServiceResource": "10.50.28.11:8971",
"dstServiceType": "db",
"duration": 1000,
"exceptionStacktrace": {},
"extInfos": [
{
"category": "",
"items": [
{
"label": "label",
"value": {}
}
]
}
],
"hostArchitecture": "amd64",
"hostName": "mse-gateway-controller-76fd4d9d49-4mf7s",
"hostOSFull": "",
"hostOSPlatform": "",
"httpUrl": "http://10.50.28.11:8971/api/openApi/paas/paasagent/proxy/http/FCDD82A43EBD5BA277F3A472CA22625679F2D9A",
"id": "c457aa04a4fee6",
"instanceId": "172.26.17.84",
"messagingDestinationKind": "topic",
"messagingOperation": "process",
"messagingQueueName": "test_messagingName",
"messagingSystem": "kafka",
"name": "test_name",
"outcome": "success",
"parentId": "89ec31e015",
"processCommandLine": "/usr/local/jdk1.8.0_221/jre:bin:java -Dlog4j2.formatMsgNoLookups=true -Dfile.encoding=UTF-8 -javaagent:/ctg-mse-gateway-controller/agent/ctyunArmsAgent.jar",
"processId": 1,
"projectCode": "_ctrace_",
"regionCode": "d8bbd132b53a11e9b0e",
"responseStatusCode": 200,
"serverAddress": "10.50.28.11:8971",
"serverPort": 8971,
"serviceCode": "msap-pipe-default",
"tenantCode": "Tenant",
"threadId": 861,
"threadName": "http-nio-27150-exec-10",
"timestamp": "2019-08-24T14:15:22Z",
"total": 0,
"traceId": "212ef3c1789851858988de",
"type": "db",
"userAgentName": "",
"userAgentOSName": "",
"userAgentOSVersion": "",
"userAgentVersion": ""
}
}