1. maven依赖
<!-- 链路追踪 sky trace --> <dependency> <groupId>org.apache.skywalking</groupId> <artifactId>apm-toolkit-trace</artifactId> </dependency> <!-- 链路追踪 sky log --> <dependency> <groupId>org.apache.skywalking</groupId> <artifactId>apm-toolkit-logback-1.x</artifactId> </dependency>
2. 默认会记录controller链路及日志
3.service层:(自定义得方法)加注解 @Trace 会记录service链路, 加注解 @Tag 会记录service链路参数日志
标签:service,链路,使用,toolkit,apm,apache,skywalking From: https://www.cnblogs.com/smileblogs/p/18374029