1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-01 22:09:57 +02:00
opentelemetry-go/example/grpc
2020-03-21 14:06:39 -07:00
..
api Unary gRPC tracing example (#351) 2019-11-26 16:14:09 -08:00
client Consistently use pointer receivers for core.Number (#375) 2019-12-09 13:03:11 -08:00
config Rename the exporter directory to exporters (#502) 2020-03-02 13:54:57 -08:00
middleware/tracing add shorter version for global providers (#538) 2020-03-11 08:23:32 -07:00
server Unary gRPC tracing example (#351) 2019-11-26 16:14:09 -08:00
go.mod Prepare for releasing v0.3.0 (#578) 2020-03-21 14:06:39 -07:00
go.sum update to v0.2.3 (#512) 2020-03-04 16:12:25 -05:00
README.md Unary gRPC tracing example (#351) 2019-11-26 16:14:09 -08:00

gRPC Tracing Example

Traces client and server calls via interceptors.

Compile .proto

Only required if the service definition (.proto) changes.

cd ./example/grpc

# protobuf v1.3.2
protoc -I api --go_out=plugins=grpc,paths=source_relative:./api api/hello-service.proto

Run server

cd ./example/grpc

go run ./server

Run client

go run ./client