mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-03 13:11:42 +02:00
20 lines
474 B
Markdown
20 lines
474 B
Markdown
|
# 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
|
||
|
```shell
|
||
|
docker-compose up -build
|
||
|
curl http://localhost:8000/v1/user/get/message/10
|
||
|
# Open with browser http://localhost:16686
|
||
|
# You can see the effect
|
||
|
```
|
||
|
|
||
|
|