Skip to content

Surface potential root cause when agent initialization errors #9170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 17, 2025

Conversation

AlexeyKuznetsov-DD
Copy link
Contributor

What Does This Do

Added logic to unwind and surface the potential root cause when an error occurs during the agent's pre-main initialization phase.

Motivation

Add more context in case of error during pre-main step.

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

…ror occurs during the agent's premain initialization phase.
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this Jul 14, 2025
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added type: enhancement Enhancements and improvements comp: core Tracer core labels Jul 14, 2025
@pr-commenter
Copy link

pr-commenter bot commented Jul 14, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alexeyk/unwind-root-cause
git_commit_date 1752765438 1752768412
git_commit_sha c73f8b6 bbb59b8
release_version 1.52.0-SNAPSHOT~c73f8b6de5 1.52.0-SNAPSHOT~bbb59b8726
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1752770294 1752770294
ci_job_id 1034413604 1034413604
ci_pipeline_id 70885662 70885662
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-7us0ihcw 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-7us0ihcw 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 48 metrics, 11 unstable metrics.

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.037 s) : 0, 1036668
Total [baseline] (10.573 s) : 0, 10572952
Agent [candidate] (1.038 s) : 0, 1037531
Total [candidate] (10.668 s) : 0, 10667986
section appsec
Agent [baseline] (1.223 s) : 0, 1222597
Total [baseline] (10.771 s) : 0, 10771005
Agent [candidate] (1.222 s) : 0, 1221541
Total [candidate] (10.759 s) : 0, 10759274
section iast
Agent [baseline] (1.173 s) : 0, 1173391
Total [baseline] (10.971 s) : 0, 10971142
Agent [candidate] (1.171 s) : 0, 1171159
Total [candidate] (10.912 s) : 0, 10911594
section profiling
Agent [baseline] (1.184 s) : 0, 1183608
Total [baseline] (10.82 s) : 0, 10819686
Agent [candidate] (1.182 s) : 0, 1181682
Total [candidate] (10.816 s) : 0, 10816285
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.037 s -
Agent appsec 1.223 s 185.929 ms (17.9%)
Agent iast 1.173 s 136.723 ms (13.2%)
Agent profiling 1.184 s 146.94 ms (14.2%)
Total tracing 10.573 s -
Total appsec 10.771 s 198.053 ms (1.9%)
Total iast 10.971 s 398.19 ms (3.8%)
Total profiling 10.82 s 246.735 ms (2.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.038 s -
Agent appsec 1.222 s 184.011 ms (17.7%)
Agent iast 1.171 s 133.628 ms (12.9%)
Agent profiling 1.182 s 144.151 ms (13.9%)
Total tracing 10.668 s -
Total appsec 10.759 s 91.289 ms (0.9%)
Total iast 10.912 s 243.608 ms (2.3%)
Total profiling 10.816 s 148.299 ms (1.4%)
gantt
    title petclinic - break down per module: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.421 ms) : 0, 1421
crashtracking [candidate] (1.428 ms) : 0, 1428
BytebuddyAgent [baseline] (728.394 ms) : 0, 728394
BytebuddyAgent [candidate] (728.9 ms) : 0, 728900
GlobalTracer [baseline] (240.735 ms) : 0, 240735
GlobalTracer [candidate] (241.075 ms) : 0, 241075
AppSec [baseline] (30.343 ms) : 0, 30343
AppSec [candidate] (30.376 ms) : 0, 30376
Debugger [baseline] (5.991 ms) : 0, 5991
Debugger [candidate] (6.008 ms) : 0, 6008
Remote Config [baseline] (652.732 µs) : 0, 653
Remote Config [candidate] (651.586 µs) : 0, 652
Telemetry [baseline] (8.183 ms) : 0, 8183
Telemetry [candidate] (8.214 ms) : 0, 8214
section appsec
crashtracking [baseline] (1.443 ms) : 0, 1443
crashtracking [candidate] (1.444 ms) : 0, 1444
BytebuddyAgent [baseline] (755.552 ms) : 0, 755552
BytebuddyAgent [candidate] (755.694 ms) : 0, 755694
GlobalTracer [baseline] (235.108 ms) : 0, 235108
GlobalTracer [candidate] (234.269 ms) : 0, 234269
IAST [baseline] (23.702 ms) : 0, 23702
IAST [candidate] (23.56 ms) : 0, 23560
AppSec [baseline] (167.414 ms) : 0, 167414
AppSec [candidate] (167.951 ms) : 0, 167951
Debugger [baseline] (8.593 ms) : 0, 8593
Debugger [candidate] (7.92 ms) : 0, 7920
Remote Config [baseline] (605.516 µs) : 0, 606
Remote Config [candidate] (601.009 µs) : 0, 601
Telemetry [baseline] (8.872 ms) : 0, 8872
Telemetry [candidate] (8.841 ms) : 0, 8841
section iast
crashtracking [baseline] (1.427 ms) : 0, 1427
crashtracking [candidate] (1.445 ms) : 0, 1445
BytebuddyAgent [baseline] (847.682 ms) : 0, 847682
BytebuddyAgent [candidate] (845.281 ms) : 0, 845281
GlobalTracer [baseline] (231.354 ms) : 0, 231354
GlobalTracer [candidate] (231.075 ms) : 0, 231075
IAST [baseline] (32.181 ms) : 0, 32181
IAST [candidate] (29.168 ms) : 0, 29168
AppSec [baseline] (24.812 ms) : 0, 24812
AppSec [candidate] (28.206 ms) : 0, 28206
Debugger [baseline] (6.615 ms) : 0, 6615
Debugger [candidate] (6.636 ms) : 0, 6636
Remote Config [baseline] (603.829 µs) : 0, 604
Remote Config [candidate] (581.928 µs) : 0, 582
Telemetry [baseline] (7.879 ms) : 0, 7879
Telemetry [candidate] (7.906 ms) : 0, 7906
section profiling
crashtracking [baseline] (1.425 ms) : 0, 1425
crashtracking [candidate] (1.393 ms) : 0, 1393
BytebuddyAgent [baseline] (759.316 ms) : 0, 759316
BytebuddyAgent [candidate] (757.898 ms) : 0, 757898
GlobalTracer [baseline] (220.488 ms) : 0, 220488
GlobalTracer [candidate] (220.545 ms) : 0, 220545
AppSec [baseline] (30.282 ms) : 0, 30282
AppSec [candidate] (30.233 ms) : 0, 30233
Debugger [baseline] (6.26 ms) : 0, 6260
Debugger [candidate] (6.253 ms) : 0, 6253
Remote Config [baseline] (665.94 µs) : 0, 666
Remote Config [candidate] (669.938 µs) : 0, 670
Telemetry [baseline] (12.492 ms) : 0, 12492
Telemetry [candidate] (14.572 ms) : 0, 14572
ProfilingAgent [baseline] (104.259 ms) : 0, 104259
ProfilingAgent [candidate] (101.908 ms) : 0, 101908
Profiling [baseline] (104.282 ms) : 0, 104282
Profiling [candidate] (101.932 ms) : 0, 101932
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.043 s) : 0, 1043281
Total [baseline] (8.58 s) : 0, 8580089
Agent [candidate] (1.036 s) : 0, 1035683
Total [candidate] (8.617 s) : 0, 8616564
section iast
Agent [baseline] (1.169 s) : 0, 1169487
Total [baseline] (9.21 s) : 0, 9210219
Agent [candidate] (1.175 s) : 0, 1175144
Total [candidate] (9.253 s) : 0, 9252844
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.043 s -
Agent iast 1.169 s 126.207 ms (12.1%)
Total tracing 8.58 s -
Total iast 9.21 s 630.13 ms (7.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.036 s -
Agent iast 1.175 s 139.461 ms (13.5%)
Total tracing 8.617 s -
Total iast 9.253 s 636.28 ms (7.4%)
gantt
    title insecure-bank - break down per module: candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.439 ms) : 0, 1439
crashtracking [candidate] (1.421 ms) : 0, 1421
BytebuddyAgent [baseline] (733.078 ms) : 0, 733078
BytebuddyAgent [candidate] (727.685 ms) : 0, 727685
GlobalTracer [baseline] (241.683 ms) : 0, 241683
GlobalTracer [candidate] (240.691 ms) : 0, 240691
AppSec [baseline] (30.535 ms) : 0, 30535
AppSec [candidate] (30.29 ms) : 0, 30290
Debugger [baseline] (6.003 ms) : 0, 6003
Debugger [candidate] (5.989 ms) : 0, 5989
Remote Config [baseline] (658.541 µs) : 0, 659
Remote Config [candidate] (640.543 µs) : 0, 641
Telemetry [baseline] (8.943 ms) : 0, 8943
Telemetry [candidate] (8.17 ms) : 0, 8170
section iast
crashtracking [baseline] (1.424 ms) : 0, 1424
crashtracking [candidate] (1.438 ms) : 0, 1438
BytebuddyAgent [baseline] (844.465 ms) : 0, 844465
BytebuddyAgent [candidate] (848.832 ms) : 0, 848832
GlobalTracer [baseline] (230.654 ms) : 0, 230654
GlobalTracer [candidate] (231.75 ms) : 0, 231750
IAST [baseline] (29.728 ms) : 0, 29728
IAST [candidate] (29.922 ms) : 0, 29922
AppSec [baseline] (25.624 ms) : 0, 25624
AppSec [candidate] (28.058 ms) : 0, 28058
Debugger [baseline] (8.351 ms) : 0, 8351
Debugger [candidate] (5.741 ms) : 0, 5741
Remote Config [baseline] (586.255 µs) : 0, 586
Remote Config [candidate] (593.42 µs) : 0, 593
Telemetry [baseline] (7.868 ms) : 0, 7868
Telemetry [candidate] (7.931 ms) : 0, 7931
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alexeyk/unwind-root-cause
git_commit_date 1752765438 1752768412
git_commit_sha c73f8b6 bbb59b8
release_version 1.52.0-SNAPSHOT~c73f8b6de5 1.52.0-SNAPSHOT~bbb59b8726
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1752769971 1752769971
ci_job_id 1034413606 1034413606
ci_pipeline_id 70885662 70885662
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-54wj2sey 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-54wj2sey 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 7 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:no_agent:high_load better
[-213.227µs; -105.756µs] or [-4.794%; -2.377%]
unstable
[-80.953op/s; +156.141op/s] or [-7.843%; +15.127%]
4.289ms 1069.781op/s 4.448ms 1032.188op/s
scenario:load:insecure-bank:profiling:high_load better
[-517.973µs; -213.798µs] or [-5.678%; -2.343%]
unstable
[-47.894op/s; +89.894op/s] or [-9.415%; +17.672%]
8.757ms 529.688op/s 9.123ms 508.688op/s
scenario:load:insecure-bank:iast:high_load worse
[+448.228µs; +784.931µs] or [+4.945%; +8.659%]
unstable
[-93.688op/s; +29.000op/s] or [-18.300%; +5.664%]
9.681ms 479.625op/s 9.064ms 511.969op/s
scenario:load:petclinic:no_agent:high_load better
[-2.099ms; -1.456ms] or [-5.599%; -3.883%]
unstable
[-2.479op/s; +14.854op/s] or [-1.988%; +11.909%]
35.712ms 130.912op/s 37.490ms 124.725op/s
scenario:load:petclinic:iast:high_load worse
[+1.190ms; +2.037ms] or [+2.677%; +4.582%]
unstable
[-10.700op/s; +3.375op/s] or [-10.167%; +3.207%]
46.069ms 101.588op/s 44.456ms 105.250op/s
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
    dateFormat X
    axisFormat %s
section baseline
no_agent (4.448 ms) : 4398, 4498
.   : milestone, 4448,
iast (9.064 ms) : 8911, 9217
.   : milestone, 9064,
iast_FULL (13.9 ms) : 13625, 14175
.   : milestone, 13900,
iast_GLOBAL (10.219 ms) : 10041, 10396
.   : milestone, 10219,
profiling (9.123 ms) : 8977, 9270
.   : milestone, 9123,
tracing (8.001 ms) : 7878, 8123
.   : milestone, 8001,
section candidate
no_agent (4.289 ms) : 4239, 4338
.   : milestone, 4289,
iast (9.681 ms) : 9521, 9841
.   : milestone, 9681,
iast_FULL (14.35 ms) : 14069, 14631
.   : milestone, 14350,
iast_GLOBAL (10.51 ms) : 10321, 10698
.   : milestone, 10510,
profiling (8.757 ms) : 8621, 8893
.   : milestone, 8757,
tracing (7.773 ms) : 7663, 7883
.   : milestone, 7773,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.448 ms [4.398 ms, 4.498 ms] -
iast 9.064 ms [8.911 ms, 9.217 ms] 4.616 ms (103.8%)
iast_FULL 13.9 ms [13.625 ms, 14.175 ms] 9.452 ms (212.5%)
iast_GLOBAL 10.219 ms [10.041 ms, 10.396 ms] 5.77 ms (129.7%)
profiling 9.123 ms [8.977 ms, 9.27 ms] 4.675 ms (105.1%)
tracing 8.001 ms [7.878 ms, 8.123 ms] 3.552 ms (79.9%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.289 ms [4.239 ms, 4.338 ms] -
iast 9.681 ms [9.521 ms, 9.841 ms] 5.392 ms (125.7%)
iast_FULL 14.35 ms [14.069 ms, 14.631 ms] 10.061 ms (234.6%)
iast_GLOBAL 10.51 ms [10.321 ms, 10.698 ms] 6.221 ms (145.1%)
profiling 8.757 ms [8.621 ms, 8.893 ms] 4.469 ms (104.2%)
tracing 7.773 ms [7.663 ms, 7.883 ms] 3.484 ms (81.2%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
    dateFormat X
    axisFormat %s
section baseline
no_agent (37.49 ms) : 37187, 37793
.   : milestone, 37490,
appsec (46.976 ms) : 46560, 47392
.   : milestone, 46976,
code_origins (47.257 ms) : 46828, 47686
.   : milestone, 47257,
iast (44.456 ms) : 44071, 44841
.   : milestone, 44456,
profiling (47.374 ms) : 46891, 47858
.   : milestone, 47374,
tracing (43.559 ms) : 43187, 43932
.   : milestone, 43559,
section candidate
no_agent (35.712 ms) : 35418, 36007
.   : milestone, 35712,
appsec (48.033 ms) : 47615, 48450
.   : milestone, 48033,
code_origins (46.957 ms) : 46547, 47368
.   : milestone, 46957,
iast (46.069 ms) : 45667, 46471
.   : milestone, 46069,
profiling (48.255 ms) : 47810, 48700
.   : milestone, 48255,
tracing (44.684 ms) : 44297, 45071
.   : milestone, 44684,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.49 ms [37.187 ms, 37.793 ms] -
appsec 46.976 ms [46.56 ms, 47.392 ms] 9.486 ms (25.3%)
code_origins 47.257 ms [46.828 ms, 47.686 ms] 9.767 ms (26.1%)
iast 44.456 ms [44.071 ms, 44.841 ms] 6.966 ms (18.6%)
profiling 47.374 ms [46.891 ms, 47.858 ms] 9.885 ms (26.4%)
tracing 43.559 ms [43.187 ms, 43.932 ms] 6.07 ms (16.2%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 35.712 ms [35.418 ms, 36.007 ms] -
appsec 48.033 ms [47.615 ms, 48.45 ms] 12.32 ms (34.5%)
code_origins 46.957 ms [46.547 ms, 47.368 ms] 11.245 ms (31.5%)
iast 46.069 ms [45.667 ms, 46.471 ms] 10.357 ms (29.0%)
profiling 48.255 ms [47.81 ms, 48.7 ms] 12.543 ms (35.1%)
tracing 44.684 ms [44.297 ms, 45.071 ms] 8.971 ms (25.1%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alexeyk/unwind-root-cause
git_commit_date 1752765438 1752768412
git_commit_sha c73f8b6 bbb59b8
release_version 1.52.0-SNAPSHOT~c73f8b6de5 1.52.0-SNAPSHOT~bbb59b8726
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1752770414 1752770414
ci_job_id 1034413608 1034413608
ci_pipeline_id 70885662 70885662
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-rj53mfbe 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-rj53mfbe 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.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
    dateFormat X
    axisFormat %s
section baseline
no_agent (14.87 s) : 14870000, 14870000
.   : milestone, 14870000,
appsec (14.611 s) : 14611000, 14611000
.   : milestone, 14611000,
iast (18.475 s) : 18475000, 18475000
.   : milestone, 18475000,
iast_GLOBAL (18.169 s) : 18169000, 18169000
.   : milestone, 18169000,
profiling (15.304 s) : 15304000, 15304000
.   : milestone, 15304000,
tracing (15.063 s) : 15063000, 15063000
.   : milestone, 15063000,
section candidate
no_agent (15.259 s) : 15259000, 15259000
.   : milestone, 15259000,
appsec (14.695 s) : 14695000, 14695000
.   : milestone, 14695000,
iast (18.452 s) : 18452000, 18452000
.   : milestone, 18452000,
iast_GLOBAL (18.004 s) : 18004000, 18004000
.   : milestone, 18004000,
profiling (15.825 s) : 15825000, 15825000
.   : milestone, 15825000,
tracing (14.764 s) : 14764000, 14764000
.   : milestone, 14764000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.87 s [14.87 s, 14.87 s] -
appsec 14.611 s [14.611 s, 14.611 s] -259.0 ms (-1.7%)
iast 18.475 s [18.475 s, 18.475 s] 3.605 s (24.2%)
iast_GLOBAL 18.169 s [18.169 s, 18.169 s] 3.299 s (22.2%)
profiling 15.304 s [15.304 s, 15.304 s] 434.0 ms (2.9%)
tracing 15.063 s [15.063 s, 15.063 s] 193.0 ms (1.3%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.259 s [15.259 s, 15.259 s] -
appsec 14.695 s [14.695 s, 14.695 s] -564.0 ms (-3.7%)
iast 18.452 s [18.452 s, 18.452 s] 3.193 s (20.9%)
iast_GLOBAL 18.004 s [18.004 s, 18.004 s] 2.745 s (18.0%)
profiling 15.825 s [15.825 s, 15.825 s] 566.0 ms (3.7%)
tracing 14.764 s [14.764 s, 14.764 s] -495.0 ms (-3.2%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.52.0-SNAPSHOT~bbb59b8726, baseline=1.52.0-SNAPSHOT~c73f8b6de5
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.473 ms) : 1461, 1484
.   : milestone, 1473,
appsec (3.646 ms) : 3428, 3863
.   : milestone, 3646,
iast (2.202 ms) : 2139, 2265
.   : milestone, 2202,
iast_GLOBAL (2.24 ms) : 2176, 2303
.   : milestone, 2240,
profiling (2.065 ms) : 2013, 2117
.   : milestone, 2065,
tracing (2.017 ms) : 1968, 2065
.   : milestone, 2017,
section candidate
no_agent (1.472 ms) : 1461, 1484
.   : milestone, 1472,
appsec (3.642 ms) : 3426, 3857
.   : milestone, 3642,
iast (2.193 ms) : 2130, 2256
.   : milestone, 2193,
iast_GLOBAL (2.241 ms) : 2178, 2304
.   : milestone, 2241,
profiling (2.051 ms) : 1999, 2103
.   : milestone, 2051,
tracing (2.014 ms) : 1966, 2063
.   : milestone, 2014,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.473 ms [1.461 ms, 1.484 ms] -
appsec 3.646 ms [3.428 ms, 3.863 ms] 2.173 ms (147.5%)
iast 2.202 ms [2.139 ms, 2.265 ms] 729.463 µs (49.5%)
iast_GLOBAL 2.24 ms [2.176 ms, 2.303 ms] 766.97 µs (52.1%)
profiling 2.065 ms [2.013 ms, 2.117 ms] 592.245 µs (40.2%)
tracing 2.017 ms [1.968 ms, 2.065 ms] 543.854 µs (36.9%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.472 ms [1.461 ms, 1.484 ms] -
appsec 3.642 ms [3.426 ms, 3.857 ms] 2.169 ms (147.3%)
iast 2.193 ms [2.13 ms, 2.256 ms] 720.672 µs (48.9%)
iast_GLOBAL 2.241 ms [2.178 ms, 2.304 ms] 768.791 µs (52.2%)
profiling 2.051 ms [1.999 ms, 2.103 ms] 578.858 µs (39.3%)
tracing 2.014 ms [1.966 ms, 2.063 ms] 541.888 µs (36.8%)

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD marked this pull request as ready for review July 15, 2025 17:01
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD requested review from a team as code owners July 15, 2025 17:01
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD requested review from sarahchen6, mcculls, dougqh, PerfectSlayer and bric3 and removed request for a team July 15, 2025 17:01
Copy link
Contributor

@sarahchen6 sarahchen6 left a comment

Choose a reason for hiding this comment

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

Looks good! To check my understanding -- this now returns the "top cause" (i.e. what was originally returned) along with the most root causes (max 4 levels of this).

@AlexeyKuznetsov-DD
Copy link
Contributor Author

Looks good! To check my understanding -- this now returns the "top cause" (i.e. what was originally returned) along with the most root causes (max 4 levels of this).

@sarahchen6 Yes, by default it will return the top one (as before) and up to 4 from the most root.

Copy link
Contributor

@PerfectSlayer PerfectSlayer left a comment

Choose a reason for hiding this comment

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

Left some comment about the keeping the environment component with a single responsibility and avoiding to create another config system.

@PerfectSlayer PerfectSlayer changed the title Added logic to unwind and surface the potential root cause when an error occurs during the agent's premain initialization phase. Surface potential root cause on when agent initialization error Jul 17, 2025
@PerfectSlayer
Copy link
Contributor

I trimmed down the PR title for changelog generation (otherwise it gets truncated with "…"). Feel free to reword it to your liking if I miss the spot 😓

@sarahchen6 sarahchen6 changed the title Surface potential root cause on when agent initialization error Surface potential root cause when agent initialization errors Jul 17, 2025
# Conflicts:
#	dd-java-agent/src/main/java/datadog/trace/bootstrap/BootstrapInitializationTelemetry.java
#	dd-java-agent/src/test/groovy/datadog/trace/bootstrap/BootstrapInitializationTelemetryTest.groovy
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD merged commit 887ea39 into master Jul 17, 2025
502 checks passed
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD deleted the alexeyk/unwind-root-cause branch July 17, 2025 16:57
@github-actions github-actions bot added this to the 1.52.0 milestone Jul 17, 2025
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