Skip to content

Replace FieldBackedContextAccessor with KeyWithValue - #12750

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
mcculls/keywithvalue-accessor
Oct 7, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
mcculls/keywithvalue-accessor

Conversation

@mcculls

@mcculls mcculls commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Replaces FieldBackedContextAccessor with KeyWithValue from dd-instrument-java

Motivation

This is step 1 of separating out field-injection from all the other transformations needed for tracing, etc.

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@mcculls
mcculls marked this pull request as ready for review October 6, 2026 09:28
@mcculls
mcculls requested review from a team as code owners October 6, 2026 09:28
@mcculls
mcculls requested review from AlexeyKuznetsov-DD and ygree and removed request for a team October 6, 2026 09:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 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-06T09:35:11.460283Z eae4304 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-4 datadog-prod-us1-4 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 new KeyWithValue contract is applied consistently across field injection, context access, matching, and module visibility, with no actionable compatibility regression identified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit eae4304 · @DataDog review to ask questions

Base automatically changed from mcculls/dd-instrument-java-0.0.6 to master October 7, 2026 12:38

@datadog-prod-us1-4 datadog-prod-us1-4 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 new KeyWithValue accessor signatures and weak-map dispatch paths match instrument-java 0.0.6. Validation is limited to source and published dependency bytecode inspection.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit eae4304 · @DataDog review to ask questions

@mcculls
mcculls force-pushed the mcculls/keywithvalue-accessor branch from eae4304 to d59909c Compare October 7, 2026 13:41
@datadog-prod-us1-4

This comment has been minimized.

@dd-octo-sts

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

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

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.87 s 13.94 s [-1.1%; +0.0%] (no difference)
startup:insecure-bank:tracing:Agent 12.77 s 12.90 s [-1.6%; -0.5%] (maybe better)
startup:petclinic:appsec:Agent 17.08 s 16.99 s [-0.4%; +1.4%] (no difference)
startup:petclinic:iast:Agent 16.87 s 16.91 s [-1.1%; +0.7%] (no difference)
startup:petclinic:profiling:Agent 16.59 s 16.68 s [-1.5%; +0.5%] (no difference)
startup:petclinic:sca:Agent 17.04 s 16.98 s [-0.5%; +1.1%] (no difference)
startup:petclinic:tracing:Agent 16.02 s 15.75 s [-2.7%; +6.2%] (no difference)

Commit: b7a8fe7f · 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.

…nt-java

This is step 1 of separating out field-injection from all the other transformations needed for tracing, etc.
@mcculls
mcculls force-pushed the mcculls/keywithvalue-accessor branch from d59909c to b7a8fe7 Compare October 7, 2026 14:59
@mcculls
mcculls requested a review from amarziali October 7, 2026 15:00
@mcculls
mcculls enabled auto-merge October 7, 2026 15:19
@mcculls
mcculls added this pull request to the merge queue Oct 7, 2026
@dd-octo-sts

dd-octo-sts Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-07 16:11:23 UTC ℹ️ Start processing command /merge


2026-10-07 16:11:27 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-10-07 16:46:58 UTC ❌ MergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for b1997ff:

⚠️ 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.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 7, 2026
@mcculls

mcculls commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-07 17:43:44 UTC ℹ️ Start processing command /merge


2026-10-07 17:43:48 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-10-07 17:59:50 UTC ❌ MergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for 6a74c07:

⚠️ 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.

@mcculls

mcculls commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-07 18:49:15 UTC ℹ️ Start processing command /merge


2026-10-07 18:49:19 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-10-07 19:06:03 UTC ❌ MergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for 0ff5f3c:

⚠️ 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.

@mcculls

mcculls commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-07 19:08:45 UTC ℹ️ Start processing command /merge


2026-10-07 19:08:49 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-10-07 20:23:55 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 6a0601a into master Oct 7, 2026
627 of 628 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the mcculls/keywithvalue-accessor branch October 7, 2026 20:23
@github-actions github-actions Bot added this to the 1.68.0 milestone Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants