apm trace.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "apmSpan": {
  3. "traceId": "${traceId}",
  4. "segmentId": "-1",
  5. "spanId": "1",
  6. "superSegmentId": "-1",
  7. "superSpanId": "-1",
  8. "apmServiceCode": "app-monitor-ms",
  9. "apmServiceInstId": "xxxx",
  10. "cmdbId": "${app-cmdb里的系统id}",
  11. "apmEndpointName": "/monitor/ms/test",
  12. "startTime": 1667282416869,
  13. "endTime": 1667282416869,
  14. "type": "ENTRY",
  15. "layer": "HTTP",
  16. "success": true,
  17. "statusCode": "200",
  18. "subSpan": [
  19. {
  20. "traceId": "${traceId}",
  21. "segmentId": "-1",
  22. "spanId": "2",
  23. "superSegmentId": "-1",
  24. "superSpanId": "1",
  25. "apmServiceCode": "app-monitor-ms",
  26. "apmServiceInstId": "xxxx",
  27. "cmdbId": "${app-cmdb里的系统id}",
  28. "apmEndpointName": "com.abc.app.monitor.service.TestService.testMethod",
  29. "startTime": 1667282416869,
  30. "endTime": 1667282416869,
  31. "type": "LOCAL",
  32. "layer": "METHOD",
  33. "success": true,
  34. "statusCode": "200",
  35. "subSpan": [
  36. {
  37. "traceId": "${traceId}",
  38. "segmentId": "-1",
  39. "spanId": "3",
  40. "superSegmentId": "-1",
  41. "superSpanId": "2",
  42. "apmServiceCode": "app-monitor-ms",
  43. "apmServiceInstId": "xxxx",
  44. "cmdbId": "${app-cmdb里的系统id}",
  45. "apmEndpointName": "Oracle/PreparedStatemnt/query",
  46. "startTime": 1667282416869,
  47. "endTime": 1667282416869,
  48. "type": "EXIT",
  49. "layer": "DB",
  50. "success": false,
  51. "statusCode": "500",
  52. "errorMsg": "sql执行失败",
  53. "event": {
  54. "level": "error",
  55. "message": "IO 错误: Connection refused",
  56. "name": "java.sql.SQLRecoverableException",
  57. "stack": "java.sql.SQLRecoverableException: IO 错误: Connection refused\r\nat oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)\r\nat oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:546)\r\nat oracle.jdbc.driveRr.T4CConnection.(T4CConnection.java:236)\r\nat oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)\r\nat oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)\r\nat java.sql.DriverManager.getConnection(DriverManager.java:664)\r\nat java.sql.DriverManager.getConnection(DriverManager.java:247)\r\nat com.abc.app.monitor.service.TestDao.testMethod(TestDao.java:55)"
  58. },
  59. "peer": "10.144.155.92:1521",
  60. "tag": [
  61. {
  62. "key": "db.statment",
  63. "value": "select 1 from dual"
  64. },
  65. {
  66. "key": "db.instance",
  67. "value": "app"
  68. }
  69. ]
  70. }
  71. ]
  72. }
  73. ]
  74. },
  75. "msgType": "apm",
  76. "secZoneId": "40003102"
  77. }