diff --git a/bazel/workspace.bzl b/bazel/workspace.bzl index 50ed186..4e369f0 100644 --- a/bazel/workspace.bzl +++ b/bazel/workspace.bzl @@ -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") @@ -86,6 +87,7 @@ def init_third_parties(): arrow() libevent() thrift() + opentelemetry_cpp() double_conversion() absl() diff --git a/third_party/arrow/workspace.bzl b/third_party/arrow/workspace.bzl index b3c11f3..ba33a16 100644 --- a/third_party/arrow/workspace.bzl +++ b/third_party/arrow/workspace.bzl @@ -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", ], ) \ No newline at end of file diff --git a/third_party/opentelemetry_cpp/BUILD b/third_party/opentelemetry_cpp/BUILD new file mode 100644 index 0000000..ffd0fb0 --- /dev/null +++ b/third_party/opentelemetry_cpp/BUILD @@ -0,0 +1 @@ +package(default_visibility = ["//visibility:public"]) diff --git a/third_party/opentelemetry_cpp/README.md b/third_party/opentelemetry_cpp/README.md new file mode 100644 index 0000000..1be04ad --- /dev/null +++ b/third_party/opentelemetry_cpp/README.md @@ -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. + + diff --git a/third_party/opentelemetry_cpp/workspace.bzl b/third_party/opentelemetry_cpp/workspace.bzl new file mode 100644 index 0000000..6594213 --- /dev/null +++ b/third_party/opentelemetry_cpp/workspace.bzl @@ -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), + ], + )