Skip to content

Migrate dd-trace-core groovy files to java part 4 #11146

Open
jpbempel wants to merge 3 commits intomasterfrom
jpbempel/g2j-core-pt4
Open

Migrate dd-trace-core groovy files to java part 4 #11146
jpbempel wants to merge 3 commits intomasterfrom
jpbempel/g2j-core-pt4

Conversation

@jpbempel
Copy link
Copy Markdown
Member

@jpbempel jpbempel commented Apr 17, 2026

What Does This Do

we migrate 3 tests:

  • CoreSpanBuilderTest
  • CoreTracerTest
  • DDSpanContextPropagationTagsTest

Motivation

this is part of the effort to migrate groovy tests to Java/JUnit
part1: #11053
part2: #11062
part3: #11085

Additional Notes

fix some still existing groovy tests regarding ServieNameCollector singleton. see commit

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.

we migrate 3 tests:
 - CoreSpanBuilderTest
 - CoreTracerTest
 - DDSpanContextPropagationTagsTest
@jpbempel jpbempel requested a review from a team as a code owner April 17, 2026 11:32
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 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.

@jpbempel jpbempel added comp: testing Testing tag: no release notes Changes to exclude from release notes labels Apr 17, 2026
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Apr 17, 2026

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jpbempel/g2j-core-pt4
git_commit_date 1776286005 1776760781
git_commit_sha 42f154d 3ec47ca
release_version 1.62.0-SNAPSHOT~42f154d2f6 1.62.0-SNAPSHOT~3ec47ca86e
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1776763242 1776763242
ci_job_id 1614166395 1614166395
ci_pipeline_id 108726577 108726577
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-4-h89lntkn 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-4-h89lntkn 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 1 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 11 unstable metrics.

scenario Δ mean execution_time candidate mean execution_time baseline mean execution_time
scenario:startup:petclinic:profiling:Remote Config better
[-46.948µs; -14.601µs] or [-7.961%; -2.476%]
558.977µs 589.751µs
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.055 s) : 0, 1055448
Total [baseline] (11.08 s) : 0, 11079503
Agent [candidate] (1.058 s) : 0, 1057681
Total [candidate] (11.1 s) : 0, 11100300
section appsec
Agent [baseline] (1.248 s) : 0, 1248325
Total [baseline] (11.248 s) : 0, 11248005
Agent [candidate] (1.261 s) : 0, 1260793
Total [candidate] (11.227 s) : 0, 11226521
section iast
Agent [baseline] (1.227 s) : 0, 1226672
Total [baseline] (11.343 s) : 0, 11343145
Agent [candidate] (1.223 s) : 0, 1223313
Total [candidate] (11.31 s) : 0, 11310438
section profiling
Agent [baseline] (1.193 s) : 0, 1193277
Total [baseline] (11.082 s) : 0, 11082452
Agent [candidate] (1.183 s) : 0, 1183499
Total [candidate] (11.216 s) : 0, 11215873
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.055 s -
Agent appsec 1.248 s 192.877 ms (18.3%)
Agent iast 1.227 s 171.224 ms (16.2%)
Agent profiling 1.193 s 137.83 ms (13.1%)
Total tracing 11.08 s -
Total appsec 11.248 s 168.502 ms (1.5%)
Total iast 11.343 s 263.642 ms (2.4%)
Total profiling 11.082 s 2.949 ms (0.0%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.058 s -
Agent appsec 1.261 s 203.112 ms (19.2%)
Agent iast 1.223 s 165.632 ms (15.7%)
Agent profiling 1.183 s 125.818 ms (11.9%)
Total tracing 11.1 s -
Total appsec 11.227 s 126.222 ms (1.1%)
Total iast 11.31 s 210.139 ms (1.9%)
Total profiling 11.216 s 115.573 ms (1.0%)
gantt
    title petclinic - break down per module: candidate=1.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.23 ms) : 0, 1230
crashtracking [candidate] (1.226 ms) : 0, 1226
BytebuddyAgent [baseline] (631.467 ms) : 0, 631467
BytebuddyAgent [candidate] (632.434 ms) : 0, 632434
AgentMeter [baseline] (29.388 ms) : 0, 29388
AgentMeter [candidate] (29.554 ms) : 0, 29554
GlobalTracer [baseline] (248.695 ms) : 0, 248695
GlobalTracer [candidate] (248.329 ms) : 0, 248329
AppSec [baseline] (32.267 ms) : 0, 32267
AppSec [candidate] (32.291 ms) : 0, 32291
Debugger [baseline] (60.029 ms) : 0, 60029
Debugger [candidate] (59.897 ms) : 0, 59897
Remote Config [baseline] (600.045 µs) : 0, 600
Remote Config [candidate] (586.953 µs) : 0, 587
Telemetry [baseline] (8.084 ms) : 0, 8084
Telemetry [candidate] (8.081 ms) : 0, 8081
Flare Poller [baseline] (7.475 ms) : 0, 7475
Flare Poller [candidate] (9.058 ms) : 0, 9058
section appsec
crashtracking [baseline] (1.245 ms) : 0, 1245
crashtracking [candidate] (1.221 ms) : 0, 1221
BytebuddyAgent [baseline] (661.859 ms) : 0, 661859
BytebuddyAgent [candidate] (664.839 ms) : 0, 664839
AgentMeter [baseline] (12.165 ms) : 0, 12165
AgentMeter [candidate] (12.284 ms) : 0, 12284
GlobalTracer [baseline] (248.745 ms) : 0, 248745
GlobalTracer [candidate] (253.157 ms) : 0, 253157
AppSec [baseline] (184.616 ms) : 0, 184616
AppSec [candidate] (187.96 ms) : 0, 187960
Debugger [baseline] (66.08 ms) : 0, 66080
Debugger [candidate] (66.897 ms) : 0, 66897
Remote Config [baseline] (609.926 µs) : 0, 610
Remote Config [candidate] (624.014 µs) : 0, 624
Telemetry [baseline] (8.374 ms) : 0, 8374
Telemetry [candidate] (8.555 ms) : 0, 8555
Flare Poller [baseline] (3.535 ms) : 0, 3535
Flare Poller [candidate] (3.62 ms) : 0, 3620
IAST [baseline] (24.612 ms) : 0, 24612
IAST [candidate] (25.004 ms) : 0, 25004
section iast
crashtracking [baseline] (1.221 ms) : 0, 1221
crashtracking [candidate] (1.23 ms) : 0, 1230
BytebuddyAgent [baseline] (802.996 ms) : 0, 802996
BytebuddyAgent [candidate] (800.26 ms) : 0, 800260
AgentMeter [baseline] (11.433 ms) : 0, 11433
AgentMeter [candidate] (11.363 ms) : 0, 11363
GlobalTracer [baseline] (239.638 ms) : 0, 239638
GlobalTracer [candidate] (238.545 ms) : 0, 238545
AppSec [baseline] (31.775 ms) : 0, 31775
AppSec [candidate] (31.982 ms) : 0, 31982
Debugger [baseline] (62.153 ms) : 0, 62153
Debugger [candidate] (59.938 ms) : 0, 59938
Remote Config [baseline] (557.9 µs) : 0, 558
Remote Config [candidate] (540.217 µs) : 0, 540
Telemetry [baseline] (11.414 ms) : 0, 11414
Telemetry [candidate] (13.099 ms) : 0, 13099
Flare Poller [baseline] (3.475 ms) : 0, 3475
Flare Poller [candidate] (3.509 ms) : 0, 3509
IAST [baseline] (25.822 ms) : 0, 25822
IAST [candidate] (26.557 ms) : 0, 26557
section profiling
crashtracking [baseline] (1.196 ms) : 0, 1196
crashtracking [candidate] (1.188 ms) : 0, 1188
BytebuddyAgent [baseline] (696.759 ms) : 0, 696759
BytebuddyAgent [candidate] (690.655 ms) : 0, 690655
AgentMeter [baseline] (9.158 ms) : 0, 9158
AgentMeter [candidate] (9.072 ms) : 0, 9072
GlobalTracer [baseline] (208.237 ms) : 0, 208237
GlobalTracer [candidate] (207.17 ms) : 0, 207170
AppSec [baseline] (33.076 ms) : 0, 33076
AppSec [candidate] (32.678 ms) : 0, 32678
Debugger [baseline] (66.176 ms) : 0, 66176
Debugger [candidate] (65.192 ms) : 0, 65192
Remote Config [baseline] (589.751 µs) : 0, 590
Remote Config [candidate] (558.977 µs) : 0, 559
Telemetry [baseline] (7.93 ms) : 0, 7930
Telemetry [candidate] (7.782 ms) : 0, 7782
Flare Poller [baseline] (3.627 ms) : 0, 3627
Flare Poller [candidate] (3.525 ms) : 0, 3525
ProfilingAgent [baseline] (94.572 ms) : 0, 94572
ProfilingAgent [candidate] (94.317 ms) : 0, 94317
Profiling [baseline] (95.161 ms) : 0, 95161
Profiling [candidate] (94.891 ms) : 0, 94891
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.057 s) : 0, 1056929
Total [baseline] (8.86 s) : 0, 8860112
Agent [candidate] (1.056 s) : 0, 1055870
Total [candidate] (8.847 s) : 0, 8846727
section iast
Agent [baseline] (1.231 s) : 0, 1231390
Total [baseline] (9.551 s) : 0, 9551415
Agent [candidate] (1.232 s) : 0, 1231654
Total [candidate] (9.607 s) : 0, 9606988
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.057 s -
Agent iast 1.231 s 174.462 ms (16.5%)
Total tracing 8.86 s -
Total iast 9.551 s 691.303 ms (7.8%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.056 s -
Agent iast 1.232 s 175.784 ms (16.6%)
Total tracing 8.847 s -
Total iast 9.607 s 760.262 ms (8.6%)
gantt
    title insecure-bank - break down per module: candidate=1.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.249 ms) : 0, 1249
crashtracking [candidate] (1.233 ms) : 0, 1233
BytebuddyAgent [baseline] (632.552 ms) : 0, 632552
BytebuddyAgent [candidate] (632.384 ms) : 0, 632384
AgentMeter [baseline] (29.339 ms) : 0, 29339
AgentMeter [candidate] (29.434 ms) : 0, 29434
GlobalTracer [baseline] (248.555 ms) : 0, 248555
GlobalTracer [candidate] (249.077 ms) : 0, 249077
AppSec [baseline] (32.322 ms) : 0, 32322
AppSec [candidate] (32.363 ms) : 0, 32363
Debugger [baseline] (58.918 ms) : 0, 58918
Debugger [candidate] (59.115 ms) : 0, 59115
Remote Config [baseline] (593.983 µs) : 0, 594
Remote Config [candidate] (591.784 µs) : 0, 592
Telemetry [baseline] (8.062 ms) : 0, 8062
Telemetry [candidate] (7.994 ms) : 0, 7994
Flare Poller [baseline] (9.074 ms) : 0, 9074
Flare Poller [candidate] (7.495 ms) : 0, 7495
section iast
crashtracking [baseline] (1.234 ms) : 0, 1234
crashtracking [candidate] (1.244 ms) : 0, 1244
BytebuddyAgent [baseline] (806.697 ms) : 0, 806697
BytebuddyAgent [candidate] (805.918 ms) : 0, 805918
AgentMeter [baseline] (11.609 ms) : 0, 11609
AgentMeter [candidate] (11.651 ms) : 0, 11651
GlobalTracer [baseline] (240.515 ms) : 0, 240515
GlobalTracer [candidate] (240.896 ms) : 0, 240896
AppSec [baseline] (32.008 ms) : 0, 32008
AppSec [candidate] (30.879 ms) : 0, 30879
Debugger [baseline] (59.985 ms) : 0, 59985
Debugger [candidate] (62.395 ms) : 0, 62395
Remote Config [baseline] (542.402 µs) : 0, 542
Remote Config [candidate] (531.652 µs) : 0, 532
Telemetry [baseline] (12.669 ms) : 0, 12669
Telemetry [candidate] (12.221 ms) : 0, 12221
Flare Poller [baseline] (3.508 ms) : 0, 3508
Flare Poller [candidate] (3.462 ms) : 0, 3462
IAST [baseline] (26.018 ms) : 0, 26018
IAST [candidate] (25.951 ms) : 0, 25951
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jpbempel/g2j-core-pt4
git_commit_date 1776286005 1776760781
git_commit_sha 42f154d 3ec47ca
release_version 1.62.0-SNAPSHOT~42f154d2f6 1.62.0-SNAPSHOT~3ec47ca86e
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1776763816 1776763816
ci_job_id 1614166396 1614166396
ci_pipeline_id 108726577 108726577
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-51hzdcmc 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-51hzdcmc 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 3 performance improvements and 2 performance regressions! Performance is the same for 14 metrics, 17 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:iast:high_load better
[-232.186µs; -148.512µs] or [-8.585%; -5.491%]
better
[-597.577µs; -190.655µs] or [-7.690%; -2.453%]
unstable
[-57.122op/s; +233.184op/s] or [-4.286%; +17.496%]
2.514ms 7.377ms 1420.781op/s 2.705ms 7.771ms 1332.750op/s
scenario:load:petclinic:code_origins:high_load better
[-906.575µs; -474.023µs] or [-5.031%; -2.631%]
unsure
[-1196.182µs; -192.364µs] or [-4.073%; -0.655%]
unstable
[-15.743op/s; +33.118op/s] or [-6.183%; +13.006%]
17.329ms 28.672ms 263.312op/s 18.019ms 29.366ms 254.625op/s
scenario:load:petclinic:iast:high_load worse
[+1.349ms; +2.263ms] or [+7.834%; +13.145%]
worse
[+1.629ms; +2.906ms] or [+5.776%; +10.303%]
unstable
[-45.586op/s; +3.024op/s] or [-17.282%; +1.146%]
19.025ms 30.473ms 242.500op/s 17.219ms 28.206ms 263.781op/s
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.255 ms) : 1243, 1268
.   : milestone, 1255,
iast (3.437 ms) : 3389, 3486
.   : milestone, 3437,
iast_FULL (6.022 ms) : 5961, 6083
.   : milestone, 6022,
iast_GLOBAL (3.738 ms) : 3675, 3800
.   : milestone, 3738,
profiling (2.227 ms) : 2206, 2247
.   : milestone, 2227,
tracing (1.882 ms) : 1867, 1897
.   : milestone, 1882,
section candidate
no_agent (1.236 ms) : 1224, 1248
.   : milestone, 1236,
iast (3.22 ms) : 3178, 3263
.   : milestone, 3220,
iast_FULL (6.133 ms) : 6070, 6196
.   : milestone, 6133,
iast_GLOBAL (3.711 ms) : 3650, 3773
.   : milestone, 3711,
profiling (2.151 ms) : 2131, 2170
.   : milestone, 2151,
tracing (1.913 ms) : 1897, 1929
.   : milestone, 1913,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.255 ms [1.243 ms, 1.268 ms] -
iast 3.437 ms [3.389 ms, 3.486 ms] 2.182 ms (173.8%)
iast_FULL 6.022 ms [5.961 ms, 6.083 ms] 4.767 ms (379.7%)
iast_GLOBAL 3.738 ms [3.675 ms, 3.8 ms] 2.482 ms (197.7%)
profiling 2.227 ms [2.206 ms, 2.247 ms] 971.228 µs (77.4%)
tracing 1.882 ms [1.867 ms, 1.897 ms] 626.803 µs (49.9%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.236 ms [1.224 ms, 1.248 ms] -
iast 3.22 ms [3.178 ms, 3.263 ms] 1.984 ms (160.5%)
iast_FULL 6.133 ms [6.07 ms, 6.196 ms] 4.897 ms (396.1%)
iast_GLOBAL 3.711 ms [3.65 ms, 3.773 ms] 2.475 ms (200.2%)
profiling 2.151 ms [2.131 ms, 2.17 ms] 914.232 µs (73.9%)
tracing 1.913 ms [1.897 ms, 1.929 ms] 676.403 µs (54.7%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (18.071 ms) : 17885, 18258
.   : milestone, 18071,
appsec (18.752 ms) : 18567, 18937
.   : milestone, 18752,
code_origins (18.328 ms) : 18146, 18509
.   : milestone, 18328,
iast (17.689 ms) : 17516, 17862
.   : milestone, 17689,
profiling (18.495 ms) : 18312, 18679
.   : milestone, 18495,
tracing (17.582 ms) : 17408, 17755
.   : milestone, 17582,
section candidate
no_agent (18.255 ms) : 18068, 18443
.   : milestone, 18255,
appsec (18.699 ms) : 18508, 18890
.   : milestone, 18699,
code_origins (17.716 ms) : 17541, 17892
.   : milestone, 17716,
iast (19.246 ms) : 19054, 19438
.   : milestone, 19246,
profiling (18.555 ms) : 18370, 18740
.   : milestone, 18555,
tracing (17.737 ms) : 17563, 17910
.   : milestone, 17737,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 18.071 ms [17.885 ms, 18.258 ms] -
appsec 18.752 ms [18.567 ms, 18.937 ms] 680.588 µs (3.8%)
code_origins 18.328 ms [18.146 ms, 18.509 ms] 256.17 µs (1.4%)
iast 17.689 ms [17.516 ms, 17.862 ms] -382.354 µs (-2.1%)
profiling 18.495 ms [18.312 ms, 18.679 ms] 424.004 µs (2.3%)
tracing 17.582 ms [17.408 ms, 17.755 ms] -489.797 µs (-2.7%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 18.255 ms [18.068 ms, 18.443 ms] -
appsec 18.699 ms [18.508 ms, 18.89 ms] 443.627 µs (2.4%)
code_origins 17.716 ms [17.541 ms, 17.892 ms] -538.821 µs (-3.0%)
iast 19.246 ms [19.054 ms, 19.438 ms] 990.408 µs (5.4%)
profiling 18.555 ms [18.37 ms, 18.74 ms] 299.961 µs (1.6%)
tracing 17.737 ms [17.563 ms, 17.91 ms] -518.399 µs (-2.8%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jpbempel/g2j-core-pt4
git_commit_date 1776286005 1776760781
git_commit_sha 42f154d 3ec47ca
release_version 1.62.0-SNAPSHOT~42f154d2f6 1.62.0-SNAPSHOT~3ec47ca86e
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1776763410 1776763410
ci_job_id 1614166397 1614166397
ci_pipeline_id 108726577 108726577
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-5-096neyos 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-5-096neyos 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.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.489 ms) : 1478, 1501
.   : milestone, 1489,
appsec (3.884 ms) : 3661, 4108
.   : milestone, 3884,
iast (2.283 ms) : 2214, 2353
.   : milestone, 2283,
iast_GLOBAL (2.33 ms) : 2260, 2400
.   : milestone, 2330,
profiling (2.097 ms) : 2042, 2152
.   : milestone, 2097,
tracing (2.092 ms) : 2038, 2146
.   : milestone, 2092,
section candidate
no_agent (1.494 ms) : 1483, 1506
.   : milestone, 1494,
appsec (3.854 ms) : 3632, 4077
.   : milestone, 3854,
iast (2.278 ms) : 2209, 2348
.   : milestone, 2278,
iast_GLOBAL (2.325 ms) : 2255, 2395
.   : milestone, 2325,
profiling (2.103 ms) : 2048, 2157
.   : milestone, 2103,
tracing (2.091 ms) : 2037, 2144
.   : milestone, 2091,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.489 ms [1.478 ms, 1.501 ms] -
appsec 3.884 ms [3.661 ms, 4.108 ms] 2.395 ms (160.8%)
iast 2.283 ms [2.214 ms, 2.353 ms] 793.941 µs (53.3%)
iast_GLOBAL 2.33 ms [2.26 ms, 2.4 ms] 840.669 µs (56.5%)
profiling 2.097 ms [2.042 ms, 2.152 ms] 608.173 µs (40.8%)
tracing 2.092 ms [2.038 ms, 2.146 ms] 602.953 µs (40.5%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.494 ms [1.483 ms, 1.506 ms] -
appsec 3.854 ms [3.632 ms, 4.077 ms] 2.36 ms (158.0%)
iast 2.278 ms [2.209 ms, 2.348 ms] 784.047 µs (52.5%)
iast_GLOBAL 2.325 ms [2.255 ms, 2.395 ms] 830.339 µs (55.6%)
profiling 2.103 ms [2.048 ms, 2.157 ms] 608.283 µs (40.7%)
tracing 2.091 ms [2.037 ms, 2.144 ms] 596.338 µs (39.9%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.62.0-SNAPSHOT~3ec47ca86e, baseline=1.62.0-SNAPSHOT~42f154d2f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (14.965 s) : 14965000, 14965000
.   : milestone, 14965000,
appsec (14.898 s) : 14898000, 14898000
.   : milestone, 14898000,
iast (18.466 s) : 18466000, 18466000
.   : milestone, 18466000,
iast_GLOBAL (18.179 s) : 18179000, 18179000
.   : milestone, 18179000,
profiling (14.965 s) : 14965000, 14965000
.   : milestone, 14965000,
tracing (14.779 s) : 14779000, 14779000
.   : milestone, 14779000,
section candidate
no_agent (15.697 s) : 15697000, 15697000
.   : milestone, 15697000,
appsec (14.849 s) : 14849000, 14849000
.   : milestone, 14849000,
iast (18.348 s) : 18348000, 18348000
.   : milestone, 18348000,
iast_GLOBAL (18.071 s) : 18071000, 18071000
.   : milestone, 18071000,
profiling (15.02 s) : 15020000, 15020000
.   : milestone, 15020000,
tracing (14.967 s) : 14967000, 14967000
.   : milestone, 14967000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.965 s [14.965 s, 14.965 s] -
appsec 14.898 s [14.898 s, 14.898 s] -67.0 ms (-0.4%)
iast 18.466 s [18.466 s, 18.466 s] 3.501 s (23.4%)
iast_GLOBAL 18.179 s [18.179 s, 18.179 s] 3.214 s (21.5%)
profiling 14.965 s [14.965 s, 14.965 s] 0.0 µs (0.0%)
tracing 14.779 s [14.779 s, 14.779 s] -186.0 ms (-1.2%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.697 s [15.697 s, 15.697 s] -
appsec 14.849 s [14.849 s, 14.849 s] -848.0 ms (-5.4%)
iast 18.348 s [18.348 s, 18.348 s] 2.651 s (16.9%)
iast_GLOBAL 18.071 s [18.071 s, 18.071 s] 2.374 s (15.1%)
profiling 15.02 s [15.02 s, 15.02 s] -677.0 ms (-4.3%)
tracing 14.967 s [14.967 s, 14.967 s] -730.0 ms (-4.7%)

we save the original instance before replaced by mock to restore it
Some tests rely on having. the original, and depending on the order
the class my keep the mocks instead resulting in errors
@jpbempel jpbempel force-pushed the jpbempel/g2j-core-pt4 branch from fcfc49d to 9bce9c0 Compare April 17, 2026 14:19
Copy link
Copy Markdown
Contributor

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD left a comment

Choose a reason for hiding this comment

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

LGTM, left minor comments about style

Comment thread dd-trace-core/src/test/java/datadog/trace/core/CoreSpanBuilderTest.java Outdated
Comment thread dd-trace-core/src/test/java/datadog/trace/core/CoreTracerTest.java Outdated
Comment thread dd-trace-core/src/test/java/datadog/trace/core/CoreTracerTest.java Outdated
Comment thread dd-trace-core/src/test/java/datadog/trace/core/CoreTracerTest.java
Comment thread dd-trace-core/src/test/java/datadog/trace/core/CoreTracerTest.java
Comment thread dd-trace-core/src/test/java/datadog/trace/core/CoreTracerTest.java Outdated
Comment thread dd-trace-core/src/test/java/datadog/trace/core/CoreTracerTest.java Outdated
Comment on lines +64 to +69
static Stream<Arguments> updateSpanPropagationTagsArguments() {
return Stream.of(
arguments(
"UNSET->USER_KEEP",
UNSET,
"_dd.p.usr=123",
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.

TableTest?

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.

This one unfortunately cannot be converted to TableTest, because UNSET is just a integer constant (and not enum)
and it will require to have a literal integer which is not very explicit

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.

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.

I can try but here the deal:
we have multiple constants like PrioritySampling and SamplingMechanism both are int and both are used in this test.
PrioritySampling is defined in dd-trace-api, so it would make sense to share across module in a dedicated type converter. But If I define one converter per constant type, TableTest complains that it cannot determine which converter to use to get the actual int.
So I need to create only one converter for int with all the different kinds of constant in one big type converter.
or create one dedicated for the test class (converter cannot be per test, only or the whole class)
WDYT?

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.

I do not have strong opinion here, but we are in state when we can experiment with various approaches and see how it goes. In this test I would start with local function so far and once we will notice other places we can move to some common place (if possible).

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

Labels

comp: testing Testing tag: no release notes Changes to exclude from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants