-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package(default_visibility = ["//visibility:public"]) |
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,19 @@ | ||
# OpenTelemetry C++: The OpenTelemetry C++ Client | ||
|
||
## Run [the GRPC example](https://github.com/open-telemetry/opentelemetry-cpp/tree/main/examples/grpc) | ||
|
||
Start the server (where PORT defaults to 8800) | ||
|
||
``` | ||
bazel run -c opt @io_opentelemetry_cpp//examples/grpc:server_grpc [-- PORT] | ||
``` | ||
|
||
In a separate terminal window, run the client to make a single request | ||
|
||
``` | ||
bazel run -c opt @io_opentelemetry_cpp//examples/grpc:client_grpc [-- PORT] | ||
``` | ||
|
||
And you should see console exporter output for both the client and server sessions. | ||
|
||
|
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,17 @@ | ||
"""Loads the opentelemetry cpp library""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
def clean_dep(dep): | ||
return str(Label(dep)) | ||
|
||
def repo(): | ||
version = "1.3.0" | ||
http_archive( | ||
name = "io_opentelemetry_cpp", | ||
strip_prefix = "opentelemetry-cpp-{}".format(version), | ||
sha256 = "6a4c43b9c9f753841ebc0fe2717325271f02e2a1d5ddd0b52735c35243629ab3", | ||
urls = [ | ||
"https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v{}.tar.gz".format(version), | ||
], | ||
) |