From 82d2e16a11d29d607bca1897289347705033ec0d Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Wed, 11 Mar 2026 16:10:59 -0700 Subject: [PATCH 1/2] [BUILD] Fix benchmark genrule capturing stderr into JSON output --- bazel/otel_cc_benchmark.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/otel_cc_benchmark.bzl b/bazel/otel_cc_benchmark.bzl index 5e4cd1b7ac..dd95103d0a 100644 --- a/bazel/otel_cc_benchmark.bzl +++ b/bazel/otel_cc_benchmark.bzl @@ -40,7 +40,7 @@ def otel_cc_benchmark(name, srcs, deps, tags = [""]): tools = [":" + name], tags = tags + ["benchmark_result", "manual"], testonly = True, - cmd = "$(location :" + name + (") --benchmark_format=json --benchmark_color=false --benchmark_min_time=.1s &> $@"), + cmd = "$(location :" + name + (") --benchmark_format=json --benchmark_color=false --benchmark_min_time=.1s > $@ 2>/dev/null"), ) # This is run as part of "bazel test ..." to smoke-test benchmarks. It's From 1594953e3b89651ec10a10bf8eaa8db95e085600 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Wed, 11 Mar 2026 16:20:11 -0700 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7788e32f2..1178025b94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ Increment the: ## [Unreleased] +* [BUILD] Fix benchmark genrule capturing stderr into JSON output + [#3925](https://github.com/open-telemetry/opentelemetry-cpp/pull/3925) + * [TEST] Add multi-threaded metrics benchmarks for shared vs per-thread counter [#3865](https://github.com/open-telemetry/opentelemetry-cpp/pull/3865)