-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move gRPC instrumentation from go.opentelemetry.io/otel (#189)
* Add google.golang.org/grpc instrumentation from otel repo Move the existing grpctrace package from the go.opentelemetry.io/otel repository to here. This is based on the package last modified in: 96a5f8f This is related to: https://github.com/open-telemetry/opentelemetry-go/issues/976 * Update package name: grpctrace -> grpc * Revert back to the v0.10.0 api/standard package for now * Make into Go module * Update the Changelog * Move the gRPC example from otel Taken from the otel repository at 5438916 * Update packaging of example * Update go.sum for example * Add grpc instrumentation to dependabot config
- Loading branch information
Showing
17 changed files
with
2,046 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 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 | ||
``` |
Oops, something went wrong.