File: README.md

package info (click to toggle)
golang-github-containerd-otelttrpc 0.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 228 kB
  • sloc: makefile: 126
file content (33 lines) | stat: -rw-r--r-- 625 bytes parent folder | download
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
```