Skip to content

Code cleaning next to Test Tracer - Telemetry destruction order fix - #402

Merged
xlamorlette-datadog merged 3 commits into
xlamorlette/fix-telemetry-destruction-bugfrom
xlamorlette/fix-telemetry-destruction-bug-code-cleaning-by-the-way
Nov 17, 2026
Merged

xlamorlette-datadog merged 3 commits into
xlamorlette/fix-telemetry-destruction-bugfrom
xlamorlette/fix-telemetry-destruction-bug-code-cleaning-by-the-way

Conversation

@xlamorlette-datadog

@xlamorlette-datadog xlamorlette-datadog commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

This is only some code cleaning, by the way, in the files modified by #400.

Additional Notes

This code cleaning is in a dedicated PR to ease the review of the main PR. We'll merge this code cleaning PR in the main one before merging to main branch.

References

Jira ticket: IDMPL-1240: [C++ Tracer] Tracer - Telemetry destruction order issue.

Contributor Checklist

  • I am the author of this pull request and I own it.
  • I reviewed every line of this pull request.
  • This pull request follows the Contributing Guidelines.

@xlamorlette-datadog
xlamorlette-datadog force-pushed the xlamorlette/fix-telemetry-destruction-bug-code-cleaning-by-the-way branch from 7ee3c67 to 7a94c92 Compare November 13, 2026 17:49
@pr-commenter

pr-commenter Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-11-13 19:18:46

Comparing candidate commit 581c68b in PR branch xlamorlette/fix-telemetry-destruction-bug-code-cleaning-by-the-way with baseline commit 666b38f in branch xlamorlette/fix-telemetry-destruction-bug.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 8 metrics, 0 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

@xlamorlette-datadog
xlamorlette-datadog changed the base branch from main to xlamorlette/fix-telemetry-destruction-bug November 13, 2026 19:05
@xlamorlette-datadog xlamorlette-datadog changed the title Test Tracer - Telementry destruction order issue Code cleaning next to Test Tracer - Telemetry destruction order fix Nov 13, 2026
@xlamorlette-datadog
xlamorlette-datadog marked this pull request as ready for review November 13, 2026 19:15
@xlamorlette-datadog
xlamorlette-datadog requested review from a team as code owners November 13, 2026 19:15
@xlamorlette-datadog
xlamorlette-datadog requested review from dubloom and removed request for a team November 13, 2026 19:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T19:16:26.781113Z 581c68b Draft marked ready
🔒 Security Review ✅ Completed 2026-11-13T19:17:48.534608Z 581c68b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-prod-us1-3 datadog-prod-us1-3 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

The initialization refactor preserves singleton construction, and the explicit no-op visitors preserve telemetry dispatch. Static review identified no actionable regression; runtime behavior was not exercised.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 581c68b

@xlamorlette-datadog
xlamorlette-datadog merged commit 56b2b0e into xlamorlette/fix-telemetry-destruction-bug Nov 17, 2026
36 checks passed
@xlamorlette-datadog
xlamorlette-datadog deleted the xlamorlette/fix-telemetry-destruction-bug-code-cleaning-by-the-way branch November 17, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants