1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
# ttRPC Tracing Example
Traces unary client and server calls via interceptors.
### Compile Example Client and Server
```sh
make
```
### Run server
```sh
./example-server
```
### Run client
```sh
./example-client
```
### Generate Protobuf Go and ttRPC bindings
If you modify the example protobuf definitions (`api/hello-service.proto`),
you need to regenerate the corresponding golang/ttRPC bindings.
```sh
# Install protoc and its dependencies if you don't have them yet.
make install-protoc install-protoc-dependencies install-ttrpc-plugin
# Regenerate golang/ttRPC bindings, recompile client and server.
make
```
|