1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-18 16:47:18 +02:00
opentelemetry-go/example/grpc/README.md
David Montoya 77543cd80e Unary gRPC tracing example (#351)
* add grpc example

* update example guide

* decouple trace provider initialization

* add source license

* update api references
2019-11-26 16:14:09 -08:00

28 lines
392 B
Markdown

# gRPC Tracing Example
Traces client and server calls via interceptors.
### Compile .proto
Only required if the service definition (.proto) changes.
```sh
cd ./example/grpc
# protobuf v1.3.2
protoc -I api --go_out=plugins=grpc,paths=source_relative:./api api/hello-service.proto
```
### Run server
```sh
cd ./example/grpc
go run ./server
```
### Run client
```sh
go run ./client
```