1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00
opentelemetry-go/example/grpc
Joshua MacDonald 1414d363de
Global meter forwarding implementation (#392)
* Initial skeleton

* Revert noop provider removal

* Checkpoint

* Checkpoint

* Implement Bound instrument and LabelSet

* Add test

* Add a benchmark

* Add a release test

* Document LabelSetDelegator

* Lint and comments

* Add a second Meter test; fix typo; add a panic

* Add a test for the builtin SDK

* Address feedback
2019-12-23 23:03:04 -08: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 Unary gRPC tracing example (#351) 2019-11-26 16:14:09 -08:00
middleware/tracing Rename CurrentSpan to SpanFromContext & SetCurrentSpan to ContextWithSpan (#379) 2019-12-11 08:51:32 -08:00
server Unary gRPC tracing example (#351) 2019-11-26 16:14:09 -08:00
go.mod go module update for release v0.2.0 (#366) 2019-12-03 00:08:30 -08:00
go.sum Global meter forwarding implementation (#392) 2019-12-23 23:03:04 -08: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