Skip to content

Conversation

mcculls
Copy link
Contributor

@mcculls mcculls commented Oct 14, 2025

Motivation

Preparing the ground to separate field-injection from other transformations.

Having a single weak-map makes it easier to manage the weak fall-back approach.

Benchmark Results

Contributor Checklist

Jira ticket: APMAPI-1567

@mcculls mcculls added type: enhancement Enhancements and improvements comp: core Tracer core labels Oct 14, 2025
@pr-commenter
Copy link

pr-commenter bot commented Oct 14, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mcculls/global-weak-context-store
git_commit_date 1760529169 1760531829
git_commit_sha 4f6f6b0 789a996
release_version 1.55.0-SNAPSHOT~4f6f6b0d56 1.55.0-SNAPSHOT~789a9969a4
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1760533681 1760533681
ci_job_id 1180218245 1180218245
ci_pipeline_id 79365339 79365339
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-a5frutd6 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-a5frutd6 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 61 metrics, 4 unstable metrics.

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.017 s) : 0, 1017325
Total [baseline] (10.771 s) : 0, 10771008
Agent [candidate] (1.019 s) : 0, 1019224
Total [candidate] (10.714 s) : 0, 10713550
section appsec
Agent [baseline] (1.194 s) : 0, 1193903
Total [baseline] (11.013 s) : 0, 11013226
Agent [candidate] (1.19 s) : 0, 1190011
Total [candidate] (11.121 s) : 0, 11120560
section iast
Agent [baseline] (1.156 s) : 0, 1155713
Total [baseline] (11.015 s) : 0, 11014728
Agent [candidate] (1.158 s) : 0, 1157527
Total [candidate] (11.079 s) : 0, 11079484
section profiling
Agent [baseline] (1.162 s) : 0, 1162409
Total [baseline] (11.071 s) : 0, 11071476
Agent [candidate] (1.161 s) : 0, 1160876
Total [candidate] (11.035 s) : 0, 11034833
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.017 s -
Agent appsec 1.194 s 176.578 ms (17.4%)
Agent iast 1.156 s 138.389 ms (13.6%)
Agent profiling 1.162 s 145.084 ms (14.3%)
Total tracing 10.771 s -
Total appsec 11.013 s 242.217 ms (2.2%)
Total iast 11.015 s 243.72 ms (2.3%)
Total profiling 11.071 s 300.468 ms (2.8%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.019 s -
Agent appsec 1.19 s 170.788 ms (16.8%)
Agent iast 1.158 s 138.303 ms (13.6%)
Agent profiling 1.161 s 141.652 ms (13.9%)
Total tracing 10.714 s -
Total appsec 11.121 s 407.01 ms (3.8%)
Total iast 11.079 s 365.934 ms (3.4%)
Total profiling 11.035 s 321.282 ms (3.0%)
gantt
    title petclinic - break down per module: candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.495 ms) : 0, 1495
crashtracking [candidate] (1.472 ms) : 0, 1472
BytebuddyAgent [baseline] (692.846 ms) : 0, 692846
BytebuddyAgent [candidate] (693.289 ms) : 0, 693289
GlobalTracer [baseline] (241.92 ms) : 0, 241920
GlobalTracer [candidate] (243.388 ms) : 0, 243388
AppSec [baseline] (32.454 ms) : 0, 32454
AppSec [candidate] (32.518 ms) : 0, 32518
Debugger [baseline] (6.42 ms) : 0, 6420
Debugger [candidate] (6.473 ms) : 0, 6473
Remote Config [baseline] (705.421 µs) : 0, 705
Remote Config [candidate] (698.181 µs) : 0, 698
Telemetry [baseline] (9.436 ms) : 0, 9436
Telemetry [candidate] (9.292 ms) : 0, 9292
Flare Poller [baseline] (10.867 ms) : 0, 10867
Flare Poller [candidate] (10.813 ms) : 0, 10813
section appsec
crashtracking [baseline] (1.473 ms) : 0, 1473
crashtracking [candidate] (1.47 ms) : 0, 1470
BytebuddyAgent [baseline] (717.135 ms) : 0, 717135
BytebuddyAgent [candidate] (713.944 ms) : 0, 713944
GlobalTracer [baseline] (234.356 ms) : 0, 234356
GlobalTracer [candidate] (233.123 ms) : 0, 233123
IAST [baseline] (24.747 ms) : 0, 24747
IAST [candidate] (24.683 ms) : 0, 24683
AppSec [baseline] (175.013 ms) : 0, 175013
AppSec [candidate] (176.526 ms) : 0, 176526
Debugger [baseline] (6.147 ms) : 0, 6147
Debugger [candidate] (6.129 ms) : 0, 6129
Remote Config [baseline] (638.818 µs) : 0, 639
Remote Config [candidate] (631.441 µs) : 0, 631
Telemetry [baseline] (9.313 ms) : 0, 9313
Telemetry [candidate] (8.491 ms) : 0, 8491
Flare Poller [baseline] (3.966 ms) : 0, 3966
Flare Poller [candidate] (3.993 ms) : 0, 3993
section iast
crashtracking [baseline] (1.468 ms) : 0, 1468
crashtracking [candidate] (1.479 ms) : 0, 1479
BytebuddyAgent [baseline] (817.395 ms) : 0, 817395
BytebuddyAgent [candidate] (820.521 ms) : 0, 820521
GlobalTracer [baseline] (232.86 ms) : 0, 232860
GlobalTracer [candidate] (232.615 ms) : 0, 232615
IAST [baseline] (26.799 ms) : 0, 26799
IAST [candidate] (26.556 ms) : 0, 26556
AppSec [baseline] (35.585 ms) : 0, 35585
AppSec [candidate] (35.314 ms) : 0, 35314
Debugger [baseline] (6.221 ms) : 0, 6221
Debugger [candidate] (6.122 ms) : 0, 6122
Remote Config [baseline] (644.021 µs) : 0, 644
Remote Config [candidate] (602.028 µs) : 0, 602
Telemetry [baseline] (8.846 ms) : 0, 8846
Telemetry [candidate] (8.623 ms) : 0, 8623
Flare Poller [baseline] (4.225 ms) : 0, 4225
Flare Poller [candidate] (4.218 ms) : 0, 4218
section profiling
crashtracking [baseline] (1.438 ms) : 0, 1438
crashtracking [candidate] (1.438 ms) : 0, 1438
BytebuddyAgent [baseline] (721.338 ms) : 0, 721338
BytebuddyAgent [candidate] (721.315 ms) : 0, 721315
GlobalTracer [baseline] (217.873 ms) : 0, 217873
GlobalTracer [candidate] (217.869 ms) : 0, 217869
AppSec [baseline] (32.388 ms) : 0, 32388
AppSec [candidate] (32.32 ms) : 0, 32320
Debugger [baseline] (6.491 ms) : 0, 6491
Debugger [candidate] (6.573 ms) : 0, 6573
Remote Config [baseline] (757.134 µs) : 0, 757
Remote Config [candidate] (809.318 µs) : 0, 809
Telemetry [baseline] (16.213 ms) : 0, 16213
Telemetry [candidate] (16.136 ms) : 0, 16136
Flare Poller [baseline] (4.147 ms) : 0, 4147
Flare Poller [candidate] (4.149 ms) : 0, 4149
ProfilingAgent [baseline] (108.672 ms) : 0, 108672
ProfilingAgent [candidate] (106.895 ms) : 0, 106895
Profiling [baseline] (109.664 ms) : 0, 109664
Profiling [candidate] (108.152 ms) : 0, 108152
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.016 s) : 0, 1015771
Total [baseline] (8.668 s) : 0, 8667707
Agent [candidate] (1.024 s) : 0, 1024135
Total [candidate] (8.696 s) : 0, 8696482
section iast
Agent [baseline] (1.149 s) : 0, 1148634
Total [baseline] (9.282 s) : 0, 9281563
Agent [candidate] (1.159 s) : 0, 1158537
Total [candidate] (9.282 s) : 0, 9281807
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.016 s -
Agent iast 1.149 s 132.863 ms (13.1%)
Total tracing 8.668 s -
Total iast 9.282 s 613.856 ms (7.1%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.024 s -
Agent iast 1.159 s 134.402 ms (13.1%)
Total tracing 8.696 s -
Total iast 9.282 s 585.325 ms (6.7%)
gantt
    title insecure-bank - break down per module: candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.474 ms) : 0, 1474
crashtracking [candidate] (1.478 ms) : 0, 1478
BytebuddyAgent [baseline] (690.861 ms) : 0, 690861
BytebuddyAgent [candidate] (698.549 ms) : 0, 698549
GlobalTracer [baseline] (241.485 ms) : 0, 241485
GlobalTracer [candidate] (242.786 ms) : 0, 242786
AppSec [baseline] (32.347 ms) : 0, 32347
AppSec [candidate] (32.079 ms) : 0, 32079
Debugger [baseline] (6.394 ms) : 0, 6394
Debugger [candidate] (6.401 ms) : 0, 6401
Remote Config [baseline] (712.064 µs) : 0, 712
Remote Config [candidate] (706.787 µs) : 0, 707
Telemetry [baseline] (9.375 ms) : 0, 9375
Telemetry [candidate] (9.269 ms) : 0, 9269
Flare Poller [baseline] (11.929 ms) : 0, 11929
Flare Poller [candidate] (11.638 ms) : 0, 11638
section iast
crashtracking [baseline] (1.491 ms) : 0, 1491
crashtracking [candidate] (1.503 ms) : 0, 1503
BytebuddyAgent [baseline] (813.58 ms) : 0, 813580
BytebuddyAgent [candidate] (820.955 ms) : 0, 820955
GlobalTracer [baseline] (230.912 ms) : 0, 230912
GlobalTracer [candidate] (232.613 ms) : 0, 232613
IAST [baseline] (26.448 ms) : 0, 26448
IAST [candidate] (26.757 ms) : 0, 26757
AppSec [baseline] (34.858 ms) : 0, 34858
AppSec [candidate] (35.402 ms) : 0, 35402
Debugger [baseline] (6.18 ms) : 0, 6180
Debugger [candidate] (6.181 ms) : 0, 6181
Remote Config [baseline] (613.428 µs) : 0, 613
Remote Config [candidate] (623.027 µs) : 0, 623
Telemetry [baseline] (8.737 ms) : 0, 8737
Telemetry [candidate] (8.699 ms) : 0, 8699
Flare Poller [baseline] (4.234 ms) : 0, 4234
Flare Poller [candidate] (4.292 ms) : 0, 4292
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mcculls/global-weak-context-store
git_commit_date 1760529169 1760531829
git_commit_sha 4f6f6b0 789a996
release_version 1.55.0-SNAPSHOT~4f6f6b0d56 1.55.0-SNAPSHOT~789a9969a4
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1760533358 1760533358
ci_job_id 1180218246 1180218246
ci_pipeline_id 79365339 79365339
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-q6v9ptzx 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-q6v9ptzx 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 4 performance improvements and 3 performance regressions! Performance is the same for 5 metrics, 12 unstable metrics.

scenario Δ mean http_req_duration Δ mean throughput candidate mean http_req_duration candidate mean throughput baseline mean http_req_duration baseline mean throughput
scenario:load:insecure-bank:profiling:high_load worse
[+177.441µs; +463.087µs] or [+2.088%; +5.450%]
unstable
[-88.824op/s; +49.637op/s] or [-16.279%; +9.097%]
8.818ms 526.031op/s 8.497ms 545.625op/s
scenario:load:insecure-bank:no_agent:high_load better
[-222.717µs; -114.226µs] or [-4.995%; -2.562%]
unstable
[-79.831op/s; +159.331op/s] or [-7.756%; +15.480%]
4.290ms 1069.031op/s 4.459ms 1029.281op/s
scenario:load:insecure-bank:tracing:high_load better
[-471.268µs; -232.474µs] or [-5.939%; -2.930%]
unstable
[-47.230op/s; +101.230op/s] or [-8.092%; +17.343%]
7.584ms 610.688op/s 7.936ms 583.688op/s
scenario:load:insecure-bank:iast_FULL:high_load better
[-2.108ms; -1.474ms] or [-13.321%; -9.312%]
unstable
[+8.228op/s; +84.261op/s] or [+2.879%; +29.480%]
14.035ms 332.062op/s 15.826ms 285.818op/s
scenario:load:petclinic:profiling:high_load worse
[+1.134ms; +2.067ms] or [+2.416%; +4.406%]
unstable
[-10.289op/s; +3.739op/s] or [-10.317%; +3.749%]
48.523ms 96.450op/s 46.923ms 99.725op/s
scenario:load:petclinic:no_agent:high_load worse
[+0.889ms; +1.515ms] or [+2.475%; +4.221%]
unstable
[-12.747op/s; +4.422op/s] or [-9.790%; +3.396%]
37.096ms 126.050op/s 35.894ms 130.213op/s
scenario:load:petclinic:code_origins:high_load better
[-4.174ms; -3.385ms] or [-9.208%; -7.467%]
unstable
[+2.034op/s; +16.616op/s] or [+1.971%; +16.101%]
41.556ms 112.525op/s 45.336ms 103.200op/s
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56
    dateFormat X
    axisFormat %s
section baseline
no_agent (4.459 ms) : 4405, 4512
.   : milestone, 4459,
iast (9.904 ms) : 9737, 10071
.   : milestone, 9904,
iast_FULL (15.826 ms) : 15512, 16140
.   : milestone, 15826,
iast_GLOBAL (11.098 ms) : 10899, 11296
.   : milestone, 11098,
profiling (8.497 ms) : 8367, 8628
.   : milestone, 8497,
tracing (7.936 ms) : 7821, 8050
.   : milestone, 7936,
section candidate
no_agent (4.29 ms) : 4243, 4337
.   : milestone, 4290,
iast (10.108 ms) : 9938, 10277
.   : milestone, 10108,
iast_FULL (14.035 ms) : 13761, 14310
.   : milestone, 14035,
iast_GLOBAL (10.745 ms) : 10556, 10935
.   : milestone, 10745,
profiling (8.818 ms) : 8683, 8952
.   : milestone, 8818,
tracing (7.584 ms) : 7477, 7691
.   : milestone, 7584,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.459 ms [4.405 ms, 4.512 ms] -
iast 9.904 ms [9.737 ms, 10.071 ms] 5.445 ms (122.1%)
iast_FULL 15.826 ms [15.512 ms, 16.14 ms] 11.367 ms (255.0%)
iast_GLOBAL 11.098 ms [10.899 ms, 11.296 ms] 6.639 ms (148.9%)
profiling 8.497 ms [8.367 ms, 8.628 ms] 4.039 ms (90.6%)
tracing 7.936 ms [7.821 ms, 8.05 ms] 3.477 ms (78.0%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.29 ms [4.243 ms, 4.337 ms] -
iast 10.108 ms [9.938 ms, 10.277 ms] 5.817 ms (135.6%)
iast_FULL 14.035 ms [13.761 ms, 14.31 ms] 9.745 ms (227.1%)
iast_GLOBAL 10.745 ms [10.556 ms, 10.935 ms] 6.455 ms (150.5%)
profiling 8.818 ms [8.683 ms, 8.952 ms] 4.527 ms (105.5%)
tracing 7.584 ms [7.477 ms, 7.691 ms] 3.294 ms (76.8%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56
    dateFormat X
    axisFormat %s
section baseline
no_agent (35.894 ms) : 35612, 36177
.   : milestone, 35894,
appsec (49.029 ms) : 48580, 49478
.   : milestone, 49029,
code_origins (45.336 ms) : 44956, 45716
.   : milestone, 45336,
iast (44.468 ms) : 44093, 44844
.   : milestone, 44468,
profiling (46.923 ms) : 46487, 47359
.   : milestone, 46923,
tracing (44.239 ms) : 43846, 44632
.   : milestone, 44239,
section candidate
no_agent (37.096 ms) : 36797, 37396
.   : milestone, 37096,
appsec (49.72 ms) : 49249, 50191
.   : milestone, 49720,
code_origins (41.556 ms) : 41203, 41908
.   : milestone, 41556,
iast (44.386 ms) : 44009, 44763
.   : milestone, 44386,
profiling (48.523 ms) : 48092, 48955
.   : milestone, 48523,
tracing (44.417 ms) : 44033, 44800
.   : milestone, 44417,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 35.894 ms [35.612 ms, 36.177 ms] -
appsec 49.029 ms [48.58 ms, 49.478 ms] 13.135 ms (36.6%)
code_origins 45.336 ms [44.956 ms, 45.716 ms] 9.441 ms (26.3%)
iast 44.468 ms [44.093 ms, 44.844 ms] 8.574 ms (23.9%)
profiling 46.923 ms [46.487 ms, 47.359 ms] 11.028 ms (30.7%)
tracing 44.239 ms [43.846 ms, 44.632 ms] 8.345 ms (23.2%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.096 ms [36.797 ms, 37.396 ms] -
appsec 49.72 ms [49.249 ms, 50.191 ms] 12.624 ms (34.0%)
code_origins 41.556 ms [41.203 ms, 41.908 ms] 4.46 ms (12.0%)
iast 44.386 ms [44.009 ms, 44.763 ms] 7.29 ms (19.7%)
profiling 48.523 ms [48.092 ms, 48.955 ms] 11.427 ms (30.8%)
tracing 44.417 ms [44.033 ms, 44.8 ms] 7.32 ms (19.7%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master mcculls/global-weak-context-store
git_commit_date 1760529169 1760531829
git_commit_sha 4f6f6b0 789a996
release_version 1.55.0-SNAPSHOT~4f6f6b0d56 1.55.0-SNAPSHOT~789a9969a4
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1760533857 1760533857
ci_job_id 1180218247 1180218247
ci_pipeline_id 79365339 79365339
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-5rrhxj4v 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-5rrhxj4v 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 biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.596 s) : 15596000, 15596000
.   : milestone, 15596000,
appsec (15.043 s) : 15043000, 15043000
.   : milestone, 15043000,
iast (18.511 s) : 18511000, 18511000
.   : milestone, 18511000,
iast_GLOBAL (18.169 s) : 18169000, 18169000
.   : milestone, 18169000,
profiling (15.272 s) : 15272000, 15272000
.   : milestone, 15272000,
tracing (14.947 s) : 14947000, 14947000
.   : milestone, 14947000,
section candidate
no_agent (15.641 s) : 15641000, 15641000
.   : milestone, 15641000,
appsec (14.846 s) : 14846000, 14846000
.   : milestone, 14846000,
iast (18.262 s) : 18262000, 18262000
.   : milestone, 18262000,
iast_GLOBAL (17.711 s) : 17711000, 17711000
.   : milestone, 17711000,
profiling (15.197 s) : 15197000, 15197000
.   : milestone, 15197000,
tracing (15.08 s) : 15080000, 15080000
.   : milestone, 15080000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.596 s [15.596 s, 15.596 s] -
appsec 15.043 s [15.043 s, 15.043 s] -553.0 ms (-3.5%)
iast 18.511 s [18.511 s, 18.511 s] 2.915 s (18.7%)
iast_GLOBAL 18.169 s [18.169 s, 18.169 s] 2.573 s (16.5%)
profiling 15.272 s [15.272 s, 15.272 s] -324.0 ms (-2.1%)
tracing 14.947 s [14.947 s, 14.947 s] -649.0 ms (-4.2%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.641 s [15.641 s, 15.641 s] -
appsec 14.846 s [14.846 s, 14.846 s] -795.0 ms (-5.1%)
iast 18.262 s [18.262 s, 18.262 s] 2.621 s (16.8%)
iast_GLOBAL 17.711 s [17.711 s, 17.711 s] 2.07 s (13.2%)
profiling 15.197 s [15.197 s, 15.197 s] -444.0 ms (-2.8%)
tracing 15.08 s [15.08 s, 15.08 s] -561.0 ms (-3.6%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.55.0-SNAPSHOT~789a9969a4, baseline=1.55.0-SNAPSHOT~4f6f6b0d56
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.473 ms) : 1462, 1485
.   : milestone, 1473,
appsec (3.632 ms) : 3418, 3846
.   : milestone, 3632,
iast (2.202 ms) : 2138, 2266
.   : milestone, 2202,
iast_GLOBAL (2.264 ms) : 2199, 2329
.   : milestone, 2264,
profiling (2.072 ms) : 2019, 2125
.   : milestone, 2072,
tracing (2.02 ms) : 1970, 2070
.   : milestone, 2020,
section candidate
no_agent (1.469 ms) : 1458, 1481
.   : milestone, 1469,
appsec (3.734 ms) : 3516, 3951
.   : milestone, 3734,
iast (2.203 ms) : 2139, 2267
.   : milestone, 2203,
iast_GLOBAL (2.251 ms) : 2187, 2315
.   : milestone, 2251,
profiling (2.051 ms) : 1999, 2103
.   : milestone, 2051,
tracing (2.019 ms) : 1969, 2068
.   : milestone, 2019,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.473 ms [1.462 ms, 1.485 ms] -
appsec 3.632 ms [3.418 ms, 3.846 ms] 2.159 ms (146.5%)
iast 2.202 ms [2.138 ms, 2.266 ms] 728.675 µs (49.5%)
iast_GLOBAL 2.264 ms [2.199 ms, 2.329 ms] 790.325 µs (53.6%)
profiling 2.072 ms [2.019 ms, 2.125 ms] 598.911 µs (40.7%)
tracing 2.02 ms [1.97 ms, 2.07 ms] 546.455 µs (37.1%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.469 ms [1.458 ms, 1.481 ms] -
appsec 3.734 ms [3.516 ms, 3.951 ms] 2.264 ms (154.1%)
iast 2.203 ms [2.139 ms, 2.267 ms] 733.836 µs (49.9%)
iast_GLOBAL 2.251 ms [2.187 ms, 2.315 ms] 781.524 µs (53.2%)
profiling 2.051 ms [1.999 ms, 2.103 ms] 581.766 µs (39.6%)
tracing 2.019 ms [1.969 ms, 2.068 ms] 549.18 µs (37.4%)

Comment on lines +14 to +18
/**
* Global weak {@link ContextStore} that acts as a fall-back when field-injection isn't possible.
*/
public final class GlobalWeakContextStore {

Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious if it make sense to cover this class with unit tests, maybe with some threading?

Copy link
Contributor Author

@mcculls mcculls Oct 14, 2025

Choose a reason for hiding this comment

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

it's a draft PR with WIP in the title... tests and benchmarks will turn up

But yes - this will definitely have both functional and multi-threaded test coverage.

@mcculls mcculls added the tag: do not merge Do not merge changes label Oct 14, 2025
@PerfectSlayer PerfectSlayer self-requested a review October 15, 2025 12:09
@mcculls mcculls force-pushed the mcculls/global-weak-context-store branch from ed27aed to 789a996 Compare October 15, 2025 12:37
@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Oct 15, 2025

🎯 Code Coverage
Patch Coverage: 0.00%
Total Coverage: 63.34% (+3.54%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 789a996 | Docs | Was this helpful? Give us feedback!

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

Labels

comp: core Tracer core tag: do not merge Do not merge changes type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants