SpringBoot2 集成 skywalking 实现链路追踪
2022-09-06 22:47:18
文章目录
1. 启动skywalking
cd D:apache-skywalking-apm-binin
- windows环境:
双击startup.bat
- linux环境:
2. 配置探针
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-gateway -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-stock -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-user -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-shop-cart -Dskywalking.collector.backend_service=localhost:11800
-javaagent:D:apache-skywalking-apm-binagentskywalking-agent.jar -Dskywalking.agent.service_name=ly-order -Dskywalking.collector.backend_service=localhost:11800
案例:
3. 启动项目
4. 测试验证
http://localhost:8080/
5. 效果图
本文摘自 :https://blog.51cto.com/g