skywalking获取traceId(tid)的方式 ``` 一,通过MDC不能获取到traceId, tid 二,可以通过skywalking手动追踪API来获取 参考文献: https://blog.csdn.net/jilo88/article/details/81355265 步骤: 1,引入依赖jar包 <!-- https://mvnrepository.com/artifact/org.apache.skywalking/apm-toolkit-trace --> <dependency> <groupId>org.apache.skywalking</groupId> <artifactId>apm-toolkit-trace</artifactId> <version>6.5.0</version> </dependency> 2,方法调用 import org.apache.skywalking.apm.toolkit.trace.TraceContext; String traceId = TraceContext.traceId();