1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-16 02:47:20 +02:00
opentelemetry-go/example/grpc
Tyler Yahn a485d0ec64
Update License header for all source files (#586)
* Update License header for all source files

- Add Apache 2.0 header to source files that did not have one.
- Update all existing headers dated to 2019 to be 2020
- Remove comma from License header to comply with the Apache 2.0
  guidelines.

* Update Copyright notice

Use the standard Copyright notices outlined by the
[CNCF](https://github.com/cncf/foundation/blob/master/copyright-notices.md#copyright-notices)
2020-03-23 22:41:10 -07:00
..
api Unary gRPC tracing example (#351) 2019-11-26 16:14:09 -08:00
client Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
config Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
middleware/tracing Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
server Update License header for all source files (#586) 2020-03-23 22:41:10 -07: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