From e65488265d744522cc58f73756188fe8275aaf1f Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 26 Apr 2021 23:18:13 +0800 Subject: [PATCH] =?UTF-8?q?UI=20=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20skywalking=20=E4=BD=9C=E4=B8=BA=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/deploy.sh | 1 + ruoyi-ui/src/views/infra/skywalking/index.vue | 2 +- ruoyi-ui/src/views/infra/skywalking/log.vue | 26 +++++++++++++++++++ .../tracer/core/annotation/BizTrace.java | 3 +++ .../framework/tracer/package-info.java | 4 +-- .../controller/auth/SysAuthController.java | 1 - .../test/ToolTestDemoController.java | 8 +++--- 7 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 ruoyi-ui/src/views/infra/skywalking/log.vue diff --git a/bin/deploy.sh b/bin/deploy.sh index 935d4606b..3a156c9b0 100644 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -27,6 +27,7 @@ JAVA_OPS="-Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$HE export SW_AGENT_NAME=$SERVER_NAME export SW_AGENT_COLLECTOR_BACKEND_SERVICES=192.168.0.84:11800 export SW_GRPC_LOG_SERVER_HOST=192.168.0.84 +export SW_AGENT_TRACE_IGNORE_PATH="Redisson/PING,/actuator/**,/admin/**" export JAVA_AGENT=-javaagent:/work/skywalking/apache-skywalking-apm-bin/agent/skywalking-agent.jar # 备份 diff --git a/ruoyi-ui/src/views/infra/skywalking/index.vue b/ruoyi-ui/src/views/infra/skywalking/index.vue index 00411d64e..843830464 100644 --- a/ruoyi-ui/src/views/infra/skywalking/index.vue +++ b/ruoyi-ui/src/views/infra/skywalking/index.vue @@ -8,7 +8,7 @@ export default { name: "SkyWalking", data() { return { - src: "http://skywalking.shop.iocoder.cn", // TODO 芋艿,后续改成配置读取 + src: "http://skywalking.shop.iocoder.cn/trace", // TODO 芋艿,后续改成配置读取 height: document.documentElement.clientHeight - 94.5 + "px;", loading: true }; diff --git a/ruoyi-ui/src/views/infra/skywalking/log.vue b/ruoyi-ui/src/views/infra/skywalking/log.vue new file mode 100644 index 000000000..06cab5d56 --- /dev/null +++ b/ruoyi-ui/src/views/infra/skywalking/log.vue @@ -0,0 +1,26 @@ +