Skip to content

Add experimental Datadog profiler option overrides - #12983

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 6 commits into
masterfrom
profiler-experimental-options
Oct 22, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 6 commits into
masterfrom
profiler-experimental-options

Conversation

@jbachorik

@jbachorik jbachorik commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Does This Do

Adds dd.profiling.experimental.ddprof.options for selectively overriding Datadog Profiler arguments. Explicit keys replace conflicting derived options while other derived options remain unchanged. The agent-controlled action, output format, and recording path cannot be overridden.

Using the option emits a warning marked for telemetry.

Motivation

Allows experimental profiler options such as nativemem or reference-chains to easily check the experimental profiler features without building specific profiler experimental config keys in the tracer.

Additional Notes

Validation:

  • profiling-ddprof unit tests
  • profiling-ddprof Spotless check
  • configuration metadata checks

Contributor Checklist

  • Format the title according to the contribution guidelines
  • Assign the required labels
  • Add configuration metadata
  • Add comprehensive unit coverage

@jbachorik jbachorik added type: feature Enhancements and improvements comp: profiling Profiling tag: ai generated Largely based on code generated by an AI or LLM labels Oct 21, 2026
@jbachorik
jbachorik marked this pull request as ready for review October 21, 2026 14:18
@jbachorik
jbachorik requested review from a team as code owners October 21, 2026 14:18
@jbachorik
jbachorik requested review from dougqh and removed request for a team October 21, 2026 14:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T14:25:58.030979Z d336703 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-21T14:22:29.859396Z d336703 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 chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d33670373a

ℹ️ 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".

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".

@datadog-official

datadog-official Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 59.60% (-0.22%)

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

@dd-octo-sts

dd-octo-sts Bot commented Oct 21, 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.97 s 13.94 s [-0.4%; +0.9%] (no difference)
startup:insecure-bank:tracing:Agent 12.83 s 12.99 s [-2.0%; -0.5%] (maybe better)
startup:petclinic:appsec:Agent 17.11 s 16.44 s [-0.4%; +8.7%] (no difference)
startup:petclinic:iast:Agent 16.92 s 17.02 s [-1.4%; +0.2%] (no difference)
startup:petclinic:profiling:Agent 16.61 s 16.84 s [-2.4%; -0.4%] (maybe better)
startup:petclinic:sca:Agent 16.99 s 16.70 s [+0.9%; +2.6%] (maybe worse)
startup:petclinic:tracing:Agent 16.10 s 16.10 s [-0.9%; +0.8%] (no difference)

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

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bits Code Review: FAIL

Experimental overrides can replace the protected start action, leaving recording state set without recording. Sampler overrides also leave controller modes stale, allowing overlapping native and JFR allocation sampling.

Open Bits AI session

🤖 Bits Code Review · Commit d336703

@kaahos kaahos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the work! I've left some comments about potential corner cases.

@jbachorik

Copy link
Copy Markdown
Contributor Author

@kaahos Well caught corner-cases! All fixed!

@jbachorik
jbachorik force-pushed the profiler-experimental-options branch from e707bb9 to c374493 Compare October 22, 2026 12:01

@kaahos kaahos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me thanks!

@jbachorik
jbachorik added this pull request to the merge queue Oct 22, 2026
@jbachorik

Copy link
Copy Markdown
Contributor Author

/merge

1 similar comment
@dd-octo-sts

dd-octo-sts Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

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

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-22 15:27:25 UTC ℹ️ Start processing command /merge


2026-10-22 15:27:30 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-10-22 15:44:54 UTC ❌ MergeQueue: The build pipeline contains failing jobs for this merge request

Build pipeline has failing jobs for 4fa7522:

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

@gh-worker-devflow-routing-ef8351

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

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-22 15:27:28 UTC ℹ️ Start processing command /merge


2026-10-22 15:27:30 UTC ❌ MergeQueue

PR already in the queue with status queued

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 22, 2026
@jbachorik
jbachorik enabled auto-merge October 22, 2026 16:11
@jbachorik
jbachorik added this pull request to the merge queue Oct 22, 2026
@dd-octo-sts

dd-octo-sts Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

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

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-22 17:04:09 UTC ℹ️ Start processing command /merge


2026-10-22 17:04:15 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-10-22 18:18:45 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 22, 2026
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit e4d04b9 into master Oct 22, 2026
609 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the profiler-experimental-options branch October 22, 2026 18:18
@github-actions github-actions Bot added this to the 1.68.0 milestone Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: profiling Profiling tag: ai generated Largely based on code generated by an AI or LLM type: feature Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants