1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00
kratos/examples/traces
Tony Chen 7dec80ccfd
fix error code and regenerate proto (#954)
* fix error code and regenerate proto
2021-05-26 20:05:34 +08:00
..
api fix error code and regenerate proto (#954) 2021-05-26 20:05:34 +08:00
app remove example/traces/go.mod (#940) 2021-05-22 13:41:16 +08:00
docker-compose.yml add examples/traces (#932) 2021-05-19 13:43:30 +08:00
Dockerfile remove example/traces/go.mod (#940) 2021-05-22 13:41:16 +08:00
README.md remove example/traces/go.mod (#940) 2021-05-22 13:41:16 +08:00
service.sh remove example/traces/go.mod (#940) 2021-05-22 13:41:16 +08:00
start-windows.bat remove example/traces/go.mod (#940) 2021-05-22 13:41:16 +08:00
start.sh remove example/traces/go.mod (#940) 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