mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-10 09:50:58 +02:00
c5d77d234c
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
api | ||
client | ||
config | ||
server | ||
go.mod | ||
go.sum | ||
README.md |
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