Skip to content

Commit

Permalink
Add opentelemetry-cpp (bazelbuild#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored and aiuto committed Jun 3, 2024
1 parent 72da263 commit 8aede2d
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 0 deletions.
28 changes: 28 additions & 0 deletions modules/opentelemetry-cpp/1.14.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module(
name = "opentelemetry-cpp",
version = "1.14.2",
compatibility_level = 0,
repo_name = "io_opentelemetry_cpp",
)

bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl")
single_version_override(
module_name = "abseil-cpp",
version = "20230802.0.bcr.1",
)

bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "curl", version = "8.4.0")
bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc")
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json")
bazel_dep(name = "opentelemetry-proto", version = "1.1.0", repo_name = "com_github_opentelemetry_proto")
bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing")
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp")
bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf")
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
bazel_dep(name = "upb", version = "0.0.0-20230907-e7430e6")
bazel_dep(name = "zlib", version = "1.3.1.bcr.1")

bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark")
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest")
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
--- /dev/null
+++ b/MODULE.bazel
@@ -0,0 +1,28 @@
+module(
+ name = "opentelemetry-cpp",
+ version = "1.14.2",
+ compatibility_level = 0,
+ repo_name = "io_opentelemetry_cpp",
+)
+
+bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl")
+single_version_override(
+ module_name = "abseil-cpp",
+ version = "20230802.0.bcr.1",
+)
+
+bazel_dep(name = "bazel_skylib", version = "1.5.0")
+bazel_dep(name = "curl", version = "8.4.0")
+bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc")
+bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json")
+bazel_dep(name = "opentelemetry-proto", version = "1.1.0", repo_name = "com_github_opentelemetry_proto")
+bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing")
+bazel_dep(name = "platforms", version = "0.0.8")
+bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp")
+bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf")
+bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
+bazel_dep(name = "upb", version = "0.0.0-20230907-e7430e6")
+bazel_dep(name = "zlib", version = "1.3.1.bcr.1")
+
+bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark")
+bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest")
13 changes: 13 additions & 0 deletions modules/opentelemetry-cpp/1.14.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform: ["debian10", "macos", "ubuntu2004", "windows"]
bazel: ["6.x", "7.x"]
tasks:
verify_targets:
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--cxxopt=-std=c++14'
- '--host_cxxopt=-std=c++14'
- '--@opentelemetry-cpp//api:with_abseil=true'
build_targets:
- '@opentelemetry-cpp//api'
9 changes: 9 additions & 0 deletions modules/opentelemetry-cpp/1.14.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-x+eAHJ9iKHUc253Uck0PBHd+1T9STIgo5zv0yfiU4L0=",
"strip_prefix": "opentelemetry-cpp-1.14.2",
"url": "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.14.2.tar.gz",
"patch_strip": 1,
"patches": {
"0001-Add-MODULE.bazel.patch": "sha256-JAtjQwrqEgzpNN6oPz4n6Cm+i2uOh4Sm2XL3HBMCTkA="
}
}
17 changes: 17 additions & 0 deletions modules/opentelemetry-cpp/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/open-telemetry/opentelemetry-cpp",
"maintainers": [
{
"email": "[email protected]",
"github": "keith",
"name": "Keith Smiley"
}
],
"repository": [
"github:open-telemetry/opentelemetry-cpp"
],
"versions": [
"1.14.2"
],
"yanked_versions": {}
}

0 comments on commit 8aede2d

Please sign in to comment.