Repository navigation
Conversation
Benchmarks pass NullTelemetryController but leave the static MetricsTelemetryCollector (10s aggregation loop) running, adding per-process noise. Swap in NullMetricsTelemetryCollector and stop the previous collector's loop; route SpanBenchmark through the helper. Co-authored-by: igoragoli <augusto.deoliveira@datadoghq.com>
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
1 similar comment
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
BenchmarksBenchmark execution time: 2026-11-25 17:00:56 Comparing candidate commit eff8732 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 18 metrics, 0 unstable metrics, 22 known flaky benchmarks, 119 flaky benchmarks without significant changes.
|
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (9808) and master. ✅ No regressions detected |
Reason for change
Flaky
Benchmarks.Tracemicrobenchmarks, likeActivityBenchmark, run the real telemetry metrics collector even though their config disables telemetry, becauseTracerHelperpassesNullTelemetryControllerdirectly and never reaches the code that swaps in the null collector.NullMetricsTelemetryCollector. See TelemetryFactory.DisableTelemetry.I think the loop itself is a small noise source, since it runs for microseconds every 10 s. The main gain is that the benchmarks now match their own config.
Summary of changes
TracerHelper.CreateTracerinstallsNullMetricsTelemetryCollectorand stops the previous collector's aggregation loop. Later calls only swap the null collector for itself.SpanBenchmarkbuilds its tracer throughTracerHelper, so it gets the same setup. It already passed the same arguments inline.Benchmarks.OpenTelemetry.InstrumentedApigets the change too, since it compilesTracerHelper.cs.Test coverage
SpanBenchmark.StartFinishSpanon net472 is about 7% faster in the same report.