Skip to content

Flag code a change carries into a hotter context, and weight header paths up (AI perf review) - #12902

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
dougqh/perf-review-carried-in-scope
Nov 11, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
dougqh/perf-review-carried-in-scope

Conversation

@dougqh

@dougqh dougqh commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Does This Do

Two amendments to the perf-review skill (SKILL.md and references/checks.md):

  1. Pre-existing code is in scope when the diff changes its execution context. Unchanged lines stay out of scope unless the diff changes what they cost: they now run more often (onto a hotter path, or per-trace to per-span), under a lock they weren't under, on a different thread (background to application thread), or ahead of a new branch or early return that makes them run more often. Such code is flagged as carried in by this change, under the normal confidence and severity rules.
  2. Propagation and header paths are exceptionally hot: findings there move up one severity notch (SEV-3 → SEV-2). This includes the propagation state behind the headers, updated on every trace whether or not a header is written: propagation tags at span start, trace-id formatting, the sampling decision's bookkeeping. Eager work for an optional propagation format (W3C/OTel tracestate, hex ids, string building, extra locks) belongs at inject/export time.

Motivation

Both come from reviewing a recent change to OTel tracestate sampling:

  • A blind perf-review of that change (diff only, no extra context) caught its two structural problems: an eager tracestate object per trace, and a new lock object on every span's propagation tags. It missed a per-trace string concatenation that check First PR - Implements the Opentracing API #2 covers. The line predated the change, but the change moved it inside a new synchronized block on the sampling path. A context-assisted run did flag it. Rule 1 closes that gap without opening the review up to every pre-existing issue near a diff.
  • Profiling put the sampling decision at ~38 ns per trace (~10% of a bare span on Zulu 17 / M1 Max), much of it propagation bookkeeping. Header and propagation handling is among the hottest code in the system. The blind run rated the eager tracestate object SEV-3, while the context-assisted run rated it SEV-2. Rule 2 encodes that weighting.

Additional Notes

  • Open question for reviewers: is a flat one-notch bump the right weighting for header and propagation paths, or should it be narrower (e.g. only for per-trace eager work)?
  • Documentation-only change to the skill. Once the wording settles, the blind review will be rerun with these rules, to check that it flags the carried-in concatenation without adding noise.
  • Out of scope: the skill needs a simplification pass (rules restated across SKILL.md and checks.md, very dense bullets in checks.md). That will be a separate PR, after the other open perf-review PRs land, so it doesn't conflict with them.

🤖 Generated with Claude Code

…aths up

Two amendments to the perf-review rubric, both from reviewing #12397.

Pre-existing code is in scope when the diff changes its execution
context: it now runs more often, under a new lock, on a different
thread, or ahead of a new branch that makes it run more often. A blind
review of #12397 missed an existing per-trace string concatenation the
PR moved inside a new synchronized block on the sampling path, because
the line itself was unchanged.

Propagation and header paths, and the propagation state updated on
every trace behind them, are exceptionally hot: findings there move up
one severity notch, and eager work for an optional propagation format
belongs at inject/export time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dougqh dougqh added comp: core Tracer core type: documentation tag: performance Performance related changes tag: no release notes Changes to exclude from release notes tag: ai generated Largely based on code generated by an AI or LLM labels Oct 16, 2026
@dd-octo-sts

dd-octo-sts Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)

Suite Status
Startup 🟡 warning

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.91 s 13.91 s [-0.7%; +0.7%] (no difference)
startup:insecure-bank:tracing:Agent 12.78 s 12.96 s [-2.2%; -0.7%] (maybe better)
startup:petclinic:appsec:Agent 17.72 s 17.56 s [+0.0%; +1.8%] (maybe worse)
startup:petclinic:iast:Agent 17.46 s 17.57 s [-1.6%; +0.3%] (no difference)
startup:petclinic:profiling:Agent 17.31 s 17.31 s [-1.0%; +1.1%] (no difference)
startup:petclinic:sca:Agent 17.68 s 17.65 s [-0.9%; +1.2%] (no difference)
startup:petclinic:tracing:Agent 16.64 s 16.72 s [-1.5%; +0.6%] (no difference)

Commit: 8425afb1 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@dougqh

dougqh commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T17:07:28.612330Z ae1a458 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: ac0d481d7c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dougqh
dougqh marked this pull request as ready for review October 19, 2026 17:05
@dougqh
dougqh requested a review from a team as a code owner October 19, 2026 17:05
@dougqh
dougqh requested review from cyrille-leclerc and removed request for a team October 19, 2026 17:05

@datadog-datadog-us1-prod datadog-datadog-us1-prod 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 completed static review found that the expanded scope remains limited to execution costs introduced by the diff, while propagation-path severity weighting preserves the existing confidence requirements.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit ae1a458

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 59.80% (-0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8425afb | Docs | Give us feedback!

State each rule once in checks.md, with a one-line summary in SKILL.md,
and keep one example per rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dougqh

dougqh commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-10 18:40:31 UTC ℹ️ Start processing command /merge


2026-11-10 18:40:35 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-10 19:11:00 UTC ❌ MergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for b8e3121:

⚠️ Do NOT retry failed jobs directly (why?).

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.
Details

Since those jobs are not marked as being allowed to fail, the pipeline will most likely fail.
Therefore, and to allow other builds to be processed, this merge request has been rejected and the pipeline got canceled.

@dougqh

dougqh commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-10 20:14:27 UTC ℹ️ Start processing command /merge


2026-11-10 20:14:31 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-10 20:31:43 UTC ❌ MergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for 8f5bc3a:

⚠️ Do NOT retry failed jobs directly (why?).

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.
Details

Since those jobs are not marked as being allowed to fail, the pipeline will most likely fail.
Therefore, and to allow other builds to be processed, this merge request has been rejected and the pipeline got canceled.

@dougqh

dougqh commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-11 01:09:40 UTC ℹ️ Start processing command /merge


2026-11-11 01:09:45 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-11 02:19:12 UTC ❌ MergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for 6b92b60:

⚠️ Do NOT retry failed jobs directly (why?).

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.
Details

Since those jobs are not marked as being allowed to fail, the pipeline will most likely fail.
Therefore, and to allow other builds to be processed, this merge request has been rejected and the pipeline got canceled.

@dougqh

dougqh commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-11 12:37:07 UTC ℹ️ Start processing command /merge


2026-11-11 12:37:11 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-11 13:46:29 UTC ❌ MergeQueue: The build pipeline failed for this merge request

Build pipeline has failing jobs for effad6f:

⚠️ Do NOT retry failed jobs directly (why?).

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.

@dougqh

dougqh commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-11 20:55:18 UTC ℹ️ Start processing command /merge


2026-11-11 20:55:23 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-11 21:56:14 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit d265414 into master Nov 11, 2026
621 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the dougqh/perf-review-carried-in-scope branch November 11, 2026 21:56
@github-actions github-actions Bot added this to the 1.69.0 milestone Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: core Tracer core tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes tag: performance Performance related changes type: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants