You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/examples/traces
包子 4a6eb3e47f
Fix rename tracing.WithPropagators to tracing.WithPropagator (#1095)
4 years ago
..
api add path pattern for http (#1076) 4 years ago
app Fix rename tracing.WithPropagators to tracing.WithPropagator (#1095) 4 years ago
Dockerfile remove example/traces/go.mod (#940) 4 years ago
README.md remove example/traces/go.mod (#940) 4 years ago
docker-compose.yml add examples/traces (#932) 4 years ago
service.sh remove example/traces/go.mod (#940) 4 years ago
start-windows.bat remove example/traces/go.mod (#940) 4 years ago
start.sh remove example/traces/go.mod (#940) 4 years ago

README.md

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