Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lshmouse committed Sep 30, 2024
1 parent 9469468 commit abf7f9a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 3 deletions.
2 changes: 2 additions & 0 deletions bazel/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ load("//third_party/xsimd:workspace.bzl", xsimd = "repo")
load("//third_party/rapidjson:workspace.bzl", rapidjson = "repo")
load("//third_party/arrow:workspace.bzl", arrow = "repo")
load("//third_party/thrift:workspace.bzl", thrift = "repo")
load("//third_party/opentelemetry_cpp:workspace.bzl", opentelemetry_cpp = "repo")

# google cpp libraries
load("//third_party/double_conversion:workspace.bzl", double_conversion = "repo")
Expand Down Expand Up @@ -86,6 +87,7 @@ def init_third_parties():
arrow()
libevent()
thrift()
opentelemetry_cpp()

double_conversion()
absl()
Expand Down
6 changes: 3 additions & 3 deletions third_party/arrow/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ def repo():
http_archive(
name = "arrow",
build_file = "//third_party/arrow:arrow.BUILD",
sha256 = "57e13c62f27b710e1de54fd30faed612aefa22aa41fa2c0c3bacd204dd18a8f3",
strip_prefix = "arrow-apache-arrow-7.0.0",
sha256 = "07cdb4da6795487c800526b2865c150ab7d80b8512a31793e6a7147c8ccd270f",
strip_prefix = "arrow-apache-arrow-14.0.2",
urls = [
"https://github.com/apache/arrow/archive/apache-arrow-7.0.0.tar.gz",
"https://github.com/apache/arrow/archive/apache-arrow-14.0.2.tar.gz",
],
)
1 change: 1 addition & 0 deletions third_party/opentelemetry_cpp/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package(default_visibility = ["//visibility:public"])
19 changes: 19 additions & 0 deletions third_party/opentelemetry_cpp/README.md
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.


17 changes: 17 additions & 0 deletions third_party/opentelemetry_cpp/workspace.bzl
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),
],
)

0 comments on commit abf7f9a

Please sign in to comment.