Skip to content

Fix initialization of samplers for probe file#12067

Open
jpbempel wants to merge 1 commit into
masterfrom
jpbempel/fix-samplers-probe-file
Open

Fix initialization of samplers for probe file#12067
jpbempel wants to merge 1 commit into
masterfrom
jpbempel/fix-samplers-probe-file

Conversation

@jpbempel

@jpbempel jpbempel commented Jul 24, 2026

Copy link
Copy Markdown
Member

What Does This Do

When loading probes from file, initSamplers method is not called for deserialized probes. we centralize probe deserialization in ProbeDefinitionDeserializer class and add smoke test for this.

Motivation

Additional Notes

Contributor Checklist

Jira ticket: DEBUG-5873

When loading probes from file, initSamplers method is not called for
deserialized probes. we centralize probe deserialization in
ProbeDefinitionDeserializer class and add smoke test for this.
@jpbempel
jpbempel requested a review from a team as a code owner July 24, 2026 14:11
@jpbempel
jpbempel requested review from tylfin and removed request for a team July 24, 2026 14:11
@dd-octo-sts

dd-octo-sts Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@jpbempel jpbempel added comp: debugger Dynamic Instrumentation type: bug fix Bug fix labels Jul 24, 2026

@datadog-prod-us1-5 datadog-prod-us1-5 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.

Datadog Autotest: PASS

More details

The file-loader change correctly centralizes probe deserialization and initializes samplers for log, trigger, and span-decoration probes without changing metric or span handling. No concrete diff-only regression was identified; package tests could not execute because this checkout requires Java 25 while the environment provides Java 21.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Datadog Autotest · Commit 8dfe6f4 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Bits found no code fix to apply

🟢 Investigated · ⚪ No code fix needed

build_tests: [:instrumentationTest, inst] was terminated because the CI container was OOM-killed, not because of an unchecked-operation compilation error; no code change applies. Check pull requests requires the repository's type and component/instrumentation labels, while exploration-tests-method-jackson-core cannot pull its signed container image, so both require CI or PR metadata remediation.


View in Datadog | Reviewed commit 8dfe6f4 · Any feedback? Reach out in #deveng-pr-agent

@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: 8dfe6f4c21

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

assertInstanceOf(MetricProbe.class, definitions.get(0));
assertInstanceOf(LogProbe.class, definitions.get(1));
assertEquals(6, definitions.size());
assertInstanceOf(TriggerProbe.class, definitions.get(0));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Fix expected probe ordering in loader test

The probe-file fixture still starts with a LOG_PROBE and appends the new TRIGGER_PROBE at the end, and ConfigurationFileLoader appends definitions in JSON array order. This assertion therefore fails immediately with a LogProbe at index 0, so the updated test blocks the module test suite before it can verify the sampler initialization change.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

no, Configuration::getDefinitions add definitions in a different order

@datadog-prod-us1-5

This comment has been minimized.

@pr-commenter

pr-commenter Bot commented Jul 24, 2026

Copy link
Copy Markdown

Debugger benchmarks

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
ci_job_date 1784902747 1784903094
end_time 2026-07-24T14:20:32 2026-07-24T14:26:20
git_branch master jpbempel/fix-samplers-probe-file
git_commit_sha 84de0a8 8dfe6f4
start_time 2026-07-24T14:19:08 2026-07-24T14:24:55
See matching parameters
Baseline Candidate
ci_job_id 1891249803 1891249803
ci_pipeline_id 126799906 126799906
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
git_commit_date 1784902210 1784902210

Summary

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

See unchanged results
scenario Δ mean agg_http_req_duration_min Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p75 Δ mean agg_http_req_duration_p99 Δ mean throughput
scenario:noprobe unstable
[-25.024µs; +14.672µs] or [-8.476%; +4.970%]
unstable
[-34.528µs; +24.375µs] or [-10.269%; +7.250%]
unstable
[-48.708µs; +35.653µs] or [-13.790%; +10.094%]
unstable
[+3.107µs; +216.703µs] or [+0.259%; +18.029%]
same
scenario:basic same same same unstable
[-69.376µs; +224.334µs] or [-6.152%; +19.894%]
same
scenario:loop unsure
[+0.076µs; +6.898µs] or [+0.001%; +0.078%]
same same same same
Request duration reports for reports
gantt
    title reports - request duration [CI 0.99] : candidate=None, baseline=None
    dateFormat X
    axisFormat %s
section baseline
noprobe (336.225 µs) : 303, 369
.   : milestone, 336,
basic (297.093 µs) : 291, 303
.   : milestone, 297,
loop (8.989 ms) : 8983, 8994
.   : milestone, 8989,
section candidate
noprobe (331.149 µs) : 309, 353
.   : milestone, 331,
basic (297.803 µs) : 291, 305
.   : milestone, 298,
loop (8.99 ms) : 8984, 8996
.   : milestone, 8990,
Loading
  • baseline results
Scenario Request median duration [CI 0.99]
noprobe 336.225 µs [303.138 µs, 369.313 µs]
basic 297.093 µs [290.929 µs, 303.258 µs]
loop 8.989 ms [8.983 ms, 8.994 ms]
  • candidate results
Scenario Request median duration [CI 0.99]
noprobe 331.149 µs [309.389 µs, 352.909 µs]
basic 297.803 µs [290.842 µs, 304.765 µs]
loop 8.99 ms [8.984 ms, 8.996 ms]

@dd-octo-sts

dd-octo-sts Bot commented Jul 24, 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.99 s 13.95 s [-0.6%; +1.2%] (no difference)
startup:insecure-bank:tracing:Agent 12.96 s 12.99 s [-0.9%; +0.5%] (no difference)
startup:petclinic:appsec:Agent 16.97 s 16.88 s [-0.6%; +1.6%] (no difference)
startup:petclinic:iast:Agent 16.86 s 16.93 s [-1.2%; +0.4%] (no difference)
startup:petclinic:profiling:Agent 16.76 s 16.87 s [-1.8%; +0.5%] (no difference)
startup:petclinic:sca:Agent 16.80 s 16.79 s [-0.9%; +1.0%] (no difference)
startup:petclinic:tracing:Agent 16.03 s 16.07 s [-1.4%; +0.8%] (no difference)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: debugger Dynamic Instrumentation type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants