diff --git a/CHANGELOG.md b/CHANGELOG.md index 30d16135ba..04a4c10b7c 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) 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