Skip to content

Add ParentBasedAlwaysOnSampler as default sampler for OTLP trace export mode#10915

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits intomasterfrom
mtoff/otlp-export-sampling
Mar 24, 2026
Merged

Add ParentBasedAlwaysOnSampler as default sampler for OTLP trace export mode#10915
gh-worker-dd-mergequeue-cf854d[bot] merged 5 commits intomasterfrom
mtoff/otlp-export-sampling

Conversation

@mtoffl01
Copy link
Copy Markdown
Contributor

@mtoffl01 mtoffl01 commented Mar 20, 2026

What Does This Do

Adds a ParentBasedAlwaysOnSampler that will be used as the default sampler when OTLP trace export is enabled and no user-defined sampling rules are configured. In this mode, child spans inherit sampling decision from their parent, but new root spans are always kept.

This PR is just one part of the OTLP Export Implementation -- Phase 1.

Motivation

When exporting traces via OTLP, there is no Datadog Agent to back-propagate sampling rates. This PR adds the OpenTelemetry-standard parentbased_always_on (ref) fallback sampler, ensuring traces are sampled at 100% by default while still respecting user-configured rules.

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

…r for otlp mode, instead of priority sampling or traces rate based sampler. plus tests
@mtoffl01 mtoffl01 requested review from a team as code owners March 20, 2026 16:46
@mtoffl01 mtoffl01 requested review from AlexeyKuznetsov-DD and mhlidd and removed request for a team March 20, 2026 16:46
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 20, 2026

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.

@mtoffl01 mtoffl01 added the type: enhancement Enhancements and improvements label Mar 20, 2026
@mtoffl01 mtoffl01 added the comp: core Tracer core label Mar 20, 2026
@mcculls mcculls self-requested a review March 20, 2026 17:06
log.error("Invalid sampler configuration. Using AllSampler", e);
sampler = new AllSampler();
}
// TODO: if OTLP trace export enabled, select ParentBasedAlwaysOnSampler here
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.

You can use config.isTraceOtlpExporterEnabled() here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's the plan 😉

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Mar 20, 2026

Benchmarks

⚠️ Warning: Baseline build not found for merge-base commit. Comparing against the latest commit on master instead.

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mtoff/otlp-export-sampling
git_commit_date 1774307356 1774362271
git_commit_sha 68aa369 4ec9b55
release_version 1.61.0-SNAPSHOT~68aa369a4f 1.61.0-SNAPSHOT~4ec9b55c91
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1774374615 1774374615
ci_job_id 1534175444 1534175444
ci_pipeline_id 104170873 104170873
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-8eqgut9x 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-8eqgut9x 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
module Agent Agent
parent None None

Summary

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

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.054 s) : 0, 1053991
Total [baseline] (11.092 s) : 0, 11091741
Agent [candidate] (1.062 s) : 0, 1061922
Total [candidate] (11.199 s) : 0, 11199470
section appsec
Agent [baseline] (1.254 s) : 0, 1253624
Total [baseline] (11.197 s) : 0, 11196525
Agent [candidate] (1.246 s) : 0, 1245827
Total [candidate] (11.171 s) : 0, 11171484
section iast
Agent [baseline] (1.226 s) : 0, 1226264
Total [baseline] (11.305 s) : 0, 11304588
Agent [candidate] (1.226 s) : 0, 1225852
Total [candidate] (7.965 s) : 0, 7965377
section profiling
Agent [baseline] (1.19 s) : 0, 1190100
Total [baseline] (11.042 s) : 0, 11041818
Agent [candidate] (1.181 s) : 0, 1180901
Total [candidate] (11.051 s) : 0, 11051428
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.054 s -
Agent appsec 1.254 s 199.633 ms (18.9%)
Agent iast 1.226 s 172.273 ms (16.3%)
Agent profiling 1.19 s 136.109 ms (12.9%)
Total tracing 11.092 s -
Total appsec 11.197 s 104.784 ms (0.9%)
Total iast 11.305 s 212.847 ms (1.9%)
Total profiling 11.042 s -49.923 ms (-0.5%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.062 s -
Agent appsec 1.246 s 183.905 ms (17.3%)
Agent iast 1.226 s 163.931 ms (15.4%)
Agent profiling 1.181 s 118.979 ms (11.2%)
Total tracing 11.199 s -
Total appsec 11.171 s -27.985 ms (-0.2%)
Total iast 7.965 s -3.234 s (-28.9%)
Total profiling 11.051 s -148.042 ms (-1.3%)
gantt
    title petclinic - break down per module: candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.189 ms) : 0, 1189
crashtracking [candidate] (1.195 ms) : 0, 1195
BytebuddyAgent [baseline] (627.372 ms) : 0, 627372
BytebuddyAgent [candidate] (631.113 ms) : 0, 631113
AgentMeter [baseline] (29.207 ms) : 0, 29207
AgentMeter [candidate] (29.618 ms) : 0, 29618
GlobalTracer [baseline] (256.382 ms) : 0, 256382
GlobalTracer [candidate] (258.553 ms) : 0, 258553
AppSec [baseline] (31.597 ms) : 0, 31597
AppSec [candidate] (32.191 ms) : 0, 32191
Debugger [baseline] (60.22 ms) : 0, 60220
Debugger [candidate] (61.019 ms) : 0, 61019
Remote Config [baseline] (589.959 µs) : 0, 590
Remote Config [candidate] (591.482 µs) : 0, 591
Telemetry [baseline] (8.038 ms) : 0, 8038
Telemetry [candidate] (8.113 ms) : 0, 8113
Flare Poller [baseline] (3.506 ms) : 0, 3506
Flare Poller [candidate] (3.543 ms) : 0, 3543
section appsec
crashtracking [baseline] (1.209 ms) : 0, 1209
crashtracking [candidate] (1.195 ms) : 0, 1195
BytebuddyAgent [baseline] (662.809 ms) : 0, 662809
BytebuddyAgent [candidate] (658.528 ms) : 0, 658528
AgentMeter [baseline] (12.2 ms) : 0, 12200
AgentMeter [candidate] (12.127 ms) : 0, 12127
GlobalTracer [baseline] (259.145 ms) : 0, 259145
GlobalTracer [candidate] (257.626 ms) : 0, 257626
IAST [baseline] (24.362 ms) : 0, 24362
IAST [candidate] (24.156 ms) : 0, 24156
AppSec [baseline] (178.325 ms) : 0, 178325
AppSec [candidate] (177.464 ms) : 0, 177464
Debugger [baseline] (66.485 ms) : 0, 66485
Debugger [candidate] (65.922 ms) : 0, 65922
Remote Config [baseline] (636.276 µs) : 0, 636
Remote Config [candidate] (625.34 µs) : 0, 625
Telemetry [baseline] (8.424 ms) : 0, 8424
Telemetry [candidate] (8.368 ms) : 0, 8368
Flare Poller [baseline] (3.622 ms) : 0, 3622
Flare Poller [candidate] (3.586 ms) : 0, 3586
section iast
crashtracking [baseline] (1.193 ms) : 0, 1193
crashtracking [candidate] (1.196 ms) : 0, 1196
BytebuddyAgent [baseline] (795.059 ms) : 0, 795059
BytebuddyAgent [candidate] (794.798 ms) : 0, 794798
AgentMeter [baseline] (11.379 ms) : 0, 11379
AgentMeter [candidate] (11.36 ms) : 0, 11360
GlobalTracer [baseline] (246.714 ms) : 0, 246714
GlobalTracer [candidate] (247.006 ms) : 0, 247006
IAST [baseline] (25.323 ms) : 0, 25323
IAST [candidate] (25.425 ms) : 0, 25425
AppSec [baseline] (26.5 ms) : 0, 26500
AppSec [candidate] (26.68 ms) : 0, 26680
Debugger [baseline] (70.935 ms) : 0, 70935
Debugger [candidate] (70.208 ms) : 0, 70208
Remote Config [baseline] (530.864 µs) : 0, 531
Remote Config [candidate] (515.208 µs) : 0, 515
Telemetry [baseline] (9.184 ms) : 0, 9184
Telemetry [candidate] (9.214 ms) : 0, 9214
Flare Poller [baseline] (3.379 ms) : 0, 3379
Flare Poller [candidate] (3.391 ms) : 0, 3391
section profiling
crashtracking [baseline] (1.189 ms) : 0, 1189
crashtracking [candidate] (1.174 ms) : 0, 1174
BytebuddyAgent [baseline] (688.404 ms) : 0, 688404
BytebuddyAgent [candidate] (681.527 ms) : 0, 681527
AgentMeter [baseline] (9.03 ms) : 0, 9030
AgentMeter [candidate] (9.02 ms) : 0, 9020
GlobalTracer [baseline] (216.113 ms) : 0, 216113
GlobalTracer [candidate] (215.181 ms) : 0, 215181
AppSec [baseline] (32.316 ms) : 0, 32316
AppSec [candidate] (32.134 ms) : 0, 32134
Debugger [baseline] (65.665 ms) : 0, 65665
Debugger [candidate] (65.749 ms) : 0, 65749
Remote Config [baseline] (561.799 µs) : 0, 562
Remote Config [candidate] (562.672 µs) : 0, 563
Telemetry [baseline] (7.742 ms) : 0, 7742
Telemetry [candidate] (7.708 ms) : 0, 7708
Flare Poller [baseline] (3.505 ms) : 0, 3505
Flare Poller [candidate] (3.436 ms) : 0, 3436
ProfilingAgent [baseline] (94.221 ms) : 0, 94221
ProfilingAgent [candidate] (93.582 ms) : 0, 93582
Profiling [baseline] (94.778 ms) : 0, 94778
Profiling [candidate] (94.14 ms) : 0, 94140
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.063 s) : 0, 1062951
Total [baseline] (8.882 s) : 0, 8881903
Agent [candidate] (1.068 s) : 0, 1067996
Total [candidate] (8.837 s) : 0, 8837115
section iast
Agent [baseline] (1.225 s) : 0, 1225338
Total [baseline] (9.577 s) : 0, 9576748
Agent [candidate] (1.237 s) : 0, 1237039
Total [candidate] (9.57 s) : 0, 9569835
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.063 s -
Agent iast 1.225 s 162.387 ms (15.3%)
Total tracing 8.882 s -
Total iast 9.577 s 694.845 ms (7.8%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.068 s -
Agent iast 1.237 s 169.043 ms (15.8%)
Total tracing 8.837 s -
Total iast 9.57 s 732.72 ms (8.3%)
gantt
    title insecure-bank - break down per module: candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.211 ms) : 0, 1211
crashtracking [candidate] (1.213 ms) : 0, 1213
BytebuddyAgent [baseline] (633.007 ms) : 0, 633007
BytebuddyAgent [candidate] (638.002 ms) : 0, 638002
AgentMeter [baseline] (29.593 ms) : 0, 29593
AgentMeter [candidate] (29.62 ms) : 0, 29620
GlobalTracer [baseline] (258.13 ms) : 0, 258130
GlobalTracer [candidate] (258.701 ms) : 0, 258701
AppSec [baseline] (31.968 ms) : 0, 31968
AppSec [candidate] (32.03 ms) : 0, 32030
Debugger [baseline] (60.01 ms) : 0, 60010
Debugger [candidate] (59.984 ms) : 0, 59984
Remote Config [baseline] (590.563 µs) : 0, 591
Remote Config [candidate] (588.285 µs) : 0, 588
Telemetry [baseline] (8.086 ms) : 0, 8086
Telemetry [candidate] (8.063 ms) : 0, 8063
Flare Poller [baseline] (4.306 ms) : 0, 4306
Flare Poller [candidate] (3.569 ms) : 0, 3569
section iast
crashtracking [baseline] (1.188 ms) : 0, 1188
crashtracking [candidate] (1.243 ms) : 0, 1243
BytebuddyAgent [baseline] (794.056 ms) : 0, 794056
BytebuddyAgent [candidate] (803.123 ms) : 0, 803123
AgentMeter [baseline] (11.415 ms) : 0, 11415
AgentMeter [candidate] (11.677 ms) : 0, 11677
GlobalTracer [baseline] (247.152 ms) : 0, 247152
GlobalTracer [candidate] (248.671 ms) : 0, 248671
IAST [baseline] (25.351 ms) : 0, 25351
IAST [candidate] (25.644 ms) : 0, 25644
AppSec [baseline] (26.533 ms) : 0, 26533
AppSec [candidate] (26.856 ms) : 0, 26856
Debugger [baseline] (67.735 ms) : 0, 67735
Debugger [candidate] (70.456 ms) : 0, 70456
Remote Config [baseline] (529.977 µs) : 0, 530
Remote Config [candidate] (544.286 µs) : 0, 544
Telemetry [baseline] (11.304 ms) : 0, 11304
Telemetry [candidate] (9.215 ms) : 0, 9215
Flare Poller [baseline] (4.013 ms) : 0, 4013
Flare Poller [candidate] (3.4 ms) : 0, 3400
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mtoff/otlp-export-sampling
git_commit_date 1774307356 1774362271
git_commit_sha 68aa369 4ec9b55
release_version 1.61.0-SNAPSHOT~68aa369a4f 1.61.0-SNAPSHOT~4ec9b55c91
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1774375112 1774375112
ci_job_id 1534175446 1534175446
ci_pipeline_id 104170873 104170873
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-2-fy2czh6p 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-2-fy2czh6p 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

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

scenario Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p95 Δ mean throughput candidate mean agg_http_req_duration_p50 candidate mean agg_http_req_duration_p95 candidate mean throughput baseline mean agg_http_req_duration_p50 baseline mean agg_http_req_duration_p95 baseline mean throughput
scenario:load:insecure-bank:profiling:high_load worse
[+86.413µs; +217.607µs] or [+5.223%; +13.153%]
unstable
[+391.920µs; +1283.587µs] or [+8.434%; +27.623%]
unstable
[-504.327op/s; -32.860op/s] or [-22.507%; -1.466%]
1.806ms 5.485ms 1972.125op/s 1.654ms 4.647ms 2240.719op/s
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f
    dateFormat X
    axisFormat %s
section baseline
no_agent (18.911 ms) : 18716, 19106
.   : milestone, 18911,
appsec (18.628 ms) : 18444, 18813
.   : milestone, 18628,
code_origins (18.235 ms) : 18056, 18415
.   : milestone, 18235,
iast (17.72 ms) : 17547, 17894
.   : milestone, 17720,
profiling (18.498 ms) : 18311, 18685
.   : milestone, 18498,
tracing (18.275 ms) : 18095, 18455
.   : milestone, 18275,
section candidate
no_agent (18.994 ms) : 18800, 19188
.   : milestone, 18994,
appsec (18.321 ms) : 18139, 18503
.   : milestone, 18321,
code_origins (17.679 ms) : 17503, 17855
.   : milestone, 17679,
iast (17.901 ms) : 17723, 18079
.   : milestone, 17901,
profiling (18.907 ms) : 18718, 19097
.   : milestone, 18907,
tracing (17.852 ms) : 17675, 18029
.   : milestone, 17852,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 18.911 ms [18.716 ms, 19.106 ms] -
appsec 18.628 ms [18.444 ms, 18.813 ms] -282.699 µs (-1.5%)
code_origins 18.235 ms [18.056 ms, 18.415 ms] -675.342 µs (-3.6%)
iast 17.72 ms [17.547 ms, 17.894 ms] -1.191 ms (-6.3%)
profiling 18.498 ms [18.311 ms, 18.685 ms] -413.269 µs (-2.2%)
tracing 18.275 ms [18.095 ms, 18.455 ms] -635.81 µs (-3.4%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 18.994 ms [18.8 ms, 19.188 ms] -
appsec 18.321 ms [18.139 ms, 18.503 ms] -673.295 µs (-3.5%)
code_origins 17.679 ms [17.503 ms, 17.855 ms] -1.315 ms (-6.9%)
iast 17.901 ms [17.723 ms, 18.079 ms] -1.093 ms (-5.8%)
profiling 18.907 ms [18.718 ms, 19.097 ms] -86.611 µs (-0.5%)
tracing 17.852 ms [17.675 ms, 18.029 ms] -1.142 ms (-6.0%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.166 ms) : 1155, 1177
.   : milestone, 1166,
iast (3.232 ms) : 3190, 3275
.   : milestone, 3232,
iast_FULL (5.836 ms) : 5777, 5894
.   : milestone, 5836,
iast_GLOBAL (3.547 ms) : 3482, 3611
.   : milestone, 3547,
profiling (2.016 ms) : 1998, 2033
.   : milestone, 2016,
tracing (1.798 ms) : 1783, 1813
.   : milestone, 1798,
section candidate
no_agent (1.192 ms) : 1180, 1204
.   : milestone, 1192,
iast (3.241 ms) : 3199, 3283
.   : milestone, 3241,
iast_FULL (5.868 ms) : 5809, 5927
.   : milestone, 5868,
iast_GLOBAL (3.435 ms) : 3390, 3481
.   : milestone, 3435,
profiling (2.3 ms) : 2279, 2320
.   : milestone, 2300,
tracing (1.82 ms) : 1804, 1836
.   : milestone, 1820,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.166 ms [1.155 ms, 1.177 ms] -
iast 3.232 ms [3.19 ms, 3.275 ms] 2.066 ms (177.1%)
iast_FULL 5.836 ms [5.777 ms, 5.894 ms] 4.669 ms (400.3%)
iast_GLOBAL 3.547 ms [3.482 ms, 3.611 ms] 2.381 ms (204.1%)
profiling 2.016 ms [1.998 ms, 2.033 ms] 849.347 µs (72.8%)
tracing 1.798 ms [1.783 ms, 1.813 ms] 631.603 µs (54.2%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.192 ms [1.18 ms, 1.204 ms] -
iast 3.241 ms [3.199 ms, 3.283 ms] 2.049 ms (171.9%)
iast_FULL 5.868 ms [5.809 ms, 5.927 ms] 4.676 ms (392.2%)
iast_GLOBAL 3.435 ms [3.39 ms, 3.481 ms] 2.243 ms (188.2%)
profiling 2.3 ms [2.279 ms, 2.32 ms] 1.108 ms (92.9%)
tracing 1.82 ms [1.804 ms, 1.836 ms] 628.273 µs (52.7%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mtoff/otlp-export-sampling
git_commit_date 1774307356 1774362271
git_commit_sha 68aa369 4ec9b55
release_version 1.61.0-SNAPSHOT~68aa369a4f 1.61.0-SNAPSHOT~4ec9b55c91
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1774374971 1774374971
ci_job_id 1534175448 1534175448
ci_pipeline_id 104170873 104170873
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-1-kq28v9z1 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-1-kq28v9z1 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

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

Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.468 ms) : 1457, 1480
.   : milestone, 1468,
appsec (3.824 ms) : 3604, 4045
.   : milestone, 3824,
iast (2.251 ms) : 2182, 2320
.   : milestone, 2251,
iast_GLOBAL (2.296 ms) : 2227, 2366
.   : milestone, 2296,
profiling (2.075 ms) : 2020, 2130
.   : milestone, 2075,
tracing (2.061 ms) : 2008, 2115
.   : milestone, 2061,
section candidate
no_agent (1.47 ms) : 1459, 1481
.   : milestone, 1470,
appsec (3.804 ms) : 3583, 4025
.   : milestone, 3804,
iast (2.247 ms) : 2178, 2315
.   : milestone, 2247,
iast_GLOBAL (2.295 ms) : 2225, 2364
.   : milestone, 2295,
profiling (2.113 ms) : 2057, 2170
.   : milestone, 2113,
tracing (2.054 ms) : 2001, 2108
.   : milestone, 2054,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.468 ms [1.457 ms, 1.48 ms] -
appsec 3.824 ms [3.604 ms, 4.045 ms] 2.356 ms (160.5%)
iast 2.251 ms [2.182 ms, 2.32 ms] 783.077 µs (53.3%)
iast_GLOBAL 2.296 ms [2.227 ms, 2.366 ms] 828.192 µs (56.4%)
profiling 2.075 ms [2.02 ms, 2.13 ms] 607.086 µs (41.3%)
tracing 2.061 ms [2.008 ms, 2.115 ms] 593.092 µs (40.4%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.47 ms [1.459 ms, 1.481 ms] -
appsec 3.804 ms [3.583 ms, 4.025 ms] 2.334 ms (158.8%)
iast 2.247 ms [2.178 ms, 2.315 ms] 776.616 µs (52.8%)
iast_GLOBAL 2.295 ms [2.225 ms, 2.364 ms] 824.862 µs (56.1%)
profiling 2.113 ms [2.057 ms, 2.17 ms] 643.16 µs (43.8%)
tracing 2.054 ms [2.001 ms, 2.108 ms] 584.521 µs (39.8%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~4ec9b55c91, baseline=1.61.0-SNAPSHOT~68aa369a4f
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.019 s) : 15019000, 15019000
.   : milestone, 15019000,
appsec (15.052 s) : 15052000, 15052000
.   : milestone, 15052000,
iast (18.004 s) : 18004000, 18004000
.   : milestone, 18004000,
iast_GLOBAL (18.035 s) : 18035000, 18035000
.   : milestone, 18035000,
profiling (14.924 s) : 14924000, 14924000
.   : milestone, 14924000,
tracing (14.882 s) : 14882000, 14882000
.   : milestone, 14882000,
section candidate
no_agent (15.608 s) : 15608000, 15608000
.   : milestone, 15608000,
appsec (14.526 s) : 14526000, 14526000
.   : milestone, 14526000,
iast (18.646 s) : 18646000, 18646000
.   : milestone, 18646000,
iast_GLOBAL (17.895 s) : 17895000, 17895000
.   : milestone, 17895000,
profiling (14.863 s) : 14863000, 14863000
.   : milestone, 14863000,
tracing (14.906 s) : 14906000, 14906000
.   : milestone, 14906000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.019 s [15.019 s, 15.019 s] -
appsec 15.052 s [15.052 s, 15.052 s] 33.0 ms (0.2%)
iast 18.004 s [18.004 s, 18.004 s] 2.985 s (19.9%)
iast_GLOBAL 18.035 s [18.035 s, 18.035 s] 3.016 s (20.1%)
profiling 14.924 s [14.924 s, 14.924 s] -95.0 ms (-0.6%)
tracing 14.882 s [14.882 s, 14.882 s] -137.0 ms (-0.9%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.608 s [15.608 s, 15.608 s] -
appsec 14.526 s [14.526 s, 14.526 s] -1.082 s (-6.9%)
iast 18.646 s [18.646 s, 18.646 s] 3.038 s (19.5%)
iast_GLOBAL 17.895 s [17.895 s, 17.895 s] 2.287 s (14.7%)
profiling 14.863 s [14.863 s, 14.863 s] -745.0 ms (-4.8%)
tracing 14.906 s [14.906 s, 14.906 s] -702.0 ms (-4.5%)

Comment on lines +87 to +93
static Stream<Arguments> childSpanInheritsSamplingDecisionFromRemoteParentArguments() {
return Stream.of(
Arguments.arguments("sampler keep", SAMPLER_KEEP),
Arguments.arguments("sampler drop", SAMPLER_DROP),
Arguments.arguments("user keep", USER_KEEP),
Arguments.arguments("user drop", USER_DROP));
}
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.

Nice rework to JUnit!
Let's use @TableTest instead of @MethodSource, you can use as example

@mtoffl01 mtoffl01 added this pull request to the merge queue Mar 24, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts bot commented Mar 24, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 bot commented Mar 24, 2026

View all feedbacks in Devflow UI.

2026-03-24 19:32:50 UTC ℹ️ Start processing command /merge


2026-03-24 19:32:54 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-03-24 20:37:55 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 Mar 24, 2026
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot merged commit e4f05e2 into master Mar 24, 2026
566 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot deleted the mtoff/otlp-export-sampling branch March 24, 2026 20:37
@github-actions github-actions bot added this to the 1.61.0 milestone Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: core Tracer core type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants