1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00
longxboy f65a0a9134
feat: enhance tracing (#1300)
* feat: enhance tracing

* fix go lint
2021-08-05 18:51:20 +08:00
..
2021-07-08 13:54:09 +08:00
2021-08-05 18:51:20 +08:00
2021-05-19 13:43:30 +08:00
2021-05-22 13:41:16 +08:00
2021-05-22 13:41:16 +08:00
2021-05-22 13:41:16 +08:00
2021-05-22 13:41:16 +08:00

traces example

  • There are two services in the example

  • After receiving the HTTP request, the user service calls the grpc server provided by the message service through the grpc client

  • The example shows how to use tracing middleware

  • You can experience the effect by following the command

run example

# Windows start-windows.bat
# mac/linux
sh start.sh
curl http://localhost:8000/v1/user/get/message/10
# Open with browser http://localhost:16686
# You can see the effect