-
Notifications
You must be signed in to change notification settings - Fork 292
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
Add Exception Replay config parameters #7647
Conversation
DD_EXCEPTION_REPLAY_CAPTURE_MAX_FRAMES alias on DD_EXCEPTION_REPLAY_MAX_FRAMES_TO_CAPTURE DD_EXCEPTION_REPLAY_CAPTURE_INTERVAL_SECONDS interval in seconds between 2 capture of the same exceptions DD_EXCEPTION_REPLAY_CAPTURE_INTERMEDIATE_SPANS_ENABLED inverted alias on DD_EXCEPTION_REPLAY_ONLY_LOCAL_ROOT
Debugger benchmarksParameters
See matching parameters
SummaryFound 0 performance improvements and 5 performance regressions! Performance is the same for 4 metrics, 6 unstable metrics.
See unchanged results
Request duration reports for reportsgantt
title reports - request duration [CI 0.99] : candidate=None, baseline=None
dateFormat X
axisFormat %s
section baseline
noprobe (304.138 µs) : 272, 337
. : milestone, 304,
basic (298.432 µs) : 288, 309
. : milestone, 298,
loop (10.319 ms) : 10287, 10351
. : milestone, 10319,
section candidate
noprobe (305.214 µs) : 268, 342
. : milestone, 305,
basic (304.68 µs) : 296, 314
. : milestone, 305,
loop (10.575 ms) : 10515, 10636
. : milestone, 10575,
|
BenchmarksStartupParameters
See matching parameters
SummaryFound 1 performance improvements and 0 performance regressions! Performance is the same for 47 metrics, 15 unstable metrics.
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.064 s) : 0, 1064203
Total [baseline] (10.315 s) : 0, 10315046
Agent [candidate] (1.07 s) : 0, 1069895
Total [candidate] (10.408 s) : 0, 10408494
section appsec
Agent [baseline] (1.204 s) : 0, 1203787
Total [baseline] (10.599 s) : 0, 10599140
Agent [candidate] (1.198 s) : 0, 1197763
Total [candidate] (10.61 s) : 0, 10610291
section iast
Agent [baseline] (1.19 s) : 0, 1190252
Total [baseline] (10.825 s) : 0, 10824972
Agent [candidate] (1.196 s) : 0, 1196058
Total [candidate] (10.772 s) : 0, 10772005
section profiling
Agent [baseline] (1.264 s) : 0, 1264262
Total [baseline] (10.541 s) : 0, 10541354
Agent [candidate] (1.263 s) : 0, 1263250
Total [candidate] (10.532 s) : 0, 10532465
gantt
title petclinic - break down per module: candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (679.037 ms) : 0, 679037
BytebuddyAgent [candidate] (683.602 ms) : 0, 683602
GlobalTracer [baseline] (309.89 ms) : 0, 309890
GlobalTracer [candidate] (311.216 ms) : 0, 311216
AppSec [baseline] (53.489 ms) : 0, 53489
AppSec [candidate] (53.143 ms) : 0, 53143
Remote Config [baseline] (668.441 µs) : 0, 668
Remote Config [candidate] (675.575 µs) : 0, 676
Telemetry [baseline] (7.528 ms) : 0, 7528
Telemetry [candidate] (7.559 ms) : 0, 7559
section appsec
BytebuddyAgent [baseline] (705.041 ms) : 0, 705041
BytebuddyAgent [candidate] (700.729 ms) : 0, 700729
GlobalTracer [baseline] (303.296 ms) : 0, 303296
GlobalTracer [candidate] (302.502 ms) : 0, 302502
AppSec [baseline] (163.424 ms) : 0, 163424
AppSec [candidate] (161.827 ms) : 0, 161827
IAST [baseline] (20.666 ms) : 0, 20666
IAST [candidate] (19.634 ms) : 0, 19634
Remote Config [baseline] (638.945 µs) : 0, 639
Remote Config [candidate] (625.276 µs) : 0, 625
Telemetry [baseline] (7.398 ms) : 0, 7398
Telemetry [candidate] (8.692 ms) : 0, 8692
section iast
BytebuddyAgent [baseline] (792.099 ms) : 0, 792099
BytebuddyAgent [candidate] (796.709 ms) : 0, 796709
GlobalTracer [baseline] (298.576 ms) : 0, 298576
GlobalTracer [candidate] (299.452 ms) : 0, 299452
AppSec [baseline] (53.67 ms) : 0, 53670
AppSec [candidate] (51.983 ms) : 0, 51983
IAST [baseline] (23.572 ms) : 0, 23572
IAST [candidate] (26.11 ms) : 0, 26110
Remote Config [baseline] (645.178 µs) : 0, 645
Remote Config [candidate] (650.21 µs) : 0, 650
Telemetry [baseline] (8.062 ms) : 0, 8062
Telemetry [candidate] (7.434 ms) : 0, 7434
section profiling
BytebuddyAgent [baseline] (673.173 ms) : 0, 673173
BytebuddyAgent [candidate] (674.89 ms) : 0, 674890
GlobalTracer [baseline] (393.996 ms) : 0, 393996
GlobalTracer [candidate] (393.126 ms) : 0, 393126
AppSec [baseline] (54.292 ms) : 0, 54292
AppSec [candidate] (53.232 ms) : 0, 53232
Remote Config [baseline] (652.904 µs) : 0, 653
Remote Config [candidate] (663.473 µs) : 0, 663
Telemetry [baseline] (7.455 ms) : 0, 7455
Telemetry [candidate] (7.427 ms) : 0, 7427
ProfilingAgent [baseline] (96.659 ms) : 0, 96659
ProfilingAgent [candidate] (95.876 ms) : 0, 95876
Profiling [baseline] (96.683 ms) : 0, 96683
Profiling [candidate] (95.9 ms) : 0, 95900
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.063 s) : 0, 1063466
Total [baseline] (8.533 s) : 0, 8532635
Agent [candidate] (1.06 s) : 0, 1059713
Total [candidate] (8.505 s) : 0, 8504691
section iast
Agent [baseline] (1.193 s) : 0, 1193026
Total [baseline] (9.008 s) : 0, 9007902
Agent [candidate] (1.186 s) : 0, 1186323
Total [candidate] (8.981 s) : 0, 8980926
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.189 s) : 0, 1189160
Total [baseline] (8.952 s) : 0, 8952399
Agent [candidate] (1.188 s) : 0, 1187998
Total [candidate] (8.954 s) : 0, 8954487
section iast_TELEMETRY_OFF
Agent [baseline] (1.184 s) : 0, 1183577
Total [baseline] (8.981 s) : 0, 8980653
Agent [candidate] (1.188 s) : 0, 1188372
Total [candidate] (8.989 s) : 0, 8989362
gantt
title insecure-bank - break down per module: candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (678.715 ms) : 0, 678715
BytebuddyAgent [candidate] (676.921 ms) : 0, 676921
GlobalTracer [baseline] (309.3 ms) : 0, 309300
GlobalTracer [candidate] (308.865 ms) : 0, 308865
AppSec [baseline] (53.52 ms) : 0, 53520
AppSec [candidate] (52.332 ms) : 0, 52332
Remote Config [baseline] (662.322 µs) : 0, 662
Remote Config [candidate] (652.762 µs) : 0, 653
Telemetry [baseline] (7.704 ms) : 0, 7704
Telemetry [candidate] (7.389 ms) : 0, 7389
section iast
BytebuddyAgent [baseline] (794.536 ms) : 0, 794536
BytebuddyAgent [candidate] (790.155 ms) : 0, 790155
GlobalTracer [baseline] (298.687 ms) : 0, 298687
GlobalTracer [candidate] (297.802 ms) : 0, 297802
AppSec [baseline] (53.714 ms) : 0, 53714
AppSec [candidate] (53.473 ms) : 0, 53473
IAST [baseline] (24.467 ms) : 0, 24467
IAST [candidate] (23.416 ms) : 0, 23416
Remote Config [baseline] (608.924 µs) : 0, 609
Remote Config [candidate] (591.167 µs) : 0, 591
Telemetry [baseline] (7.369 ms) : 0, 7369
Telemetry [candidate] (7.277 ms) : 0, 7277
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (791.545 ms) : 0, 791545
BytebuddyAgent [candidate] (790.827 ms) : 0, 790827
GlobalTracer [baseline] (297.905 ms) : 0, 297905
GlobalTracer [candidate] (298.469 ms) : 0, 298469
AppSec [baseline] (54.654 ms) : 0, 54654
AppSec [candidate] (52.869 ms) : 0, 52869
IAST [baseline] (23.481 ms) : 0, 23481
IAST [candidate] (24.341 ms) : 0, 24341
Remote Config [baseline] (610.441 µs) : 0, 610
Remote Config [candidate] (628.057 µs) : 0, 628
Telemetry [baseline] (7.331 ms) : 0, 7331
Telemetry [candidate] (7.281 ms) : 0, 7281
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (786.388 ms) : 0, 786388
BytebuddyAgent [candidate] (790.126 ms) : 0, 790126
GlobalTracer [baseline] (297.851 ms) : 0, 297851
GlobalTracer [candidate] (299.101 ms) : 0, 299101
AppSec [baseline] (55.764 ms) : 0, 55764
AppSec [candidate] (55.831 ms) : 0, 55831
IAST [baseline] (21.43 ms) : 0, 21430
IAST [candidate] (21.753 ms) : 0, 21753
Remote Config [baseline] (1.368 ms) : 0, 1368
Remote Config [candidate] (607.68 µs) : 0, 608
Telemetry [baseline] (7.179 ms) : 0, 7179
Telemetry [candidate] (7.318 ms) : 0, 7318
LoadParameters
See matching parameters
SummaryFound 1 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 16 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section baseline
no_agent (372.652 µs) : 353, 392
. : milestone, 373,
iast (483.398 µs) : 462, 505
. : milestone, 483,
iast_FULL (552.317 µs) : 531, 574
. : milestone, 552,
iast_GLOBAL (511.662 µs) : 490, 534
. : milestone, 512,
iast_HARDCODED_SECRET_DISABLED (485.05 µs) : 464, 506
. : milestone, 485,
iast_INACTIVE (459.689 µs) : 439, 480
. : milestone, 460,
iast_TELEMETRY_OFF (480.358 µs) : 458, 503
. : milestone, 480,
tracing (442.842 µs) : 422, 463
. : milestone, 443,
section candidate
no_agent (367.424 µs) : 348, 387
. : milestone, 367,
iast (481.524 µs) : 460, 503
. : milestone, 482,
iast_FULL (553.682 µs) : 532, 575
. : milestone, 554,
iast_GLOBAL (506.149 µs) : 485, 527
. : milestone, 506,
iast_HARDCODED_SECRET_DISABLED (481.4 µs) : 460, 503
. : milestone, 481,
iast_INACTIVE (445.063 µs) : 425, 465
. : milestone, 445,
iast_TELEMETRY_OFF (483.242 µs) : 460, 506
. : milestone, 483,
tracing (443.812 µs) : 423, 464
. : milestone, 444,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section baseline
no_agent (1.344 ms) : 1324, 1363
. : milestone, 1344,
appsec (1.737 ms) : 1713, 1760
. : milestone, 1737,
appsec_no_iast (1.737 ms) : 1713, 1761
. : milestone, 1737,
iast (1.469 ms) : 1446, 1492
. : milestone, 1469,
profiling (1.524 ms) : 1498, 1549
. : milestone, 1524,
tracing (1.451 ms) : 1427, 1475
. : milestone, 1451,
section candidate
no_agent (1.334 ms) : 1314, 1353
. : milestone, 1334,
appsec (1.719 ms) : 1695, 1743
. : milestone, 1719,
appsec_no_iast (1.734 ms) : 1710, 1759
. : milestone, 1734,
iast (1.449 ms) : 1426, 1472
. : milestone, 1449,
profiling (1.465 ms) : 1442, 1489
. : milestone, 1465,
tracing (1.46 ms) : 1435, 1484
. : milestone, 1460,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section baseline
no_agent (15.744 s) : 15744000, 15744000
. : milestone, 15744000,
appsec (15.454 s) : 15454000, 15454000
. : milestone, 15454000,
iast (18.674 s) : 18674000, 18674000
. : milestone, 18674000,
iast_GLOBAL (18.164 s) : 18164000, 18164000
. : milestone, 18164000,
profiling (15.333 s) : 15333000, 15333000
. : milestone, 15333000,
tracing (14.897 s) : 14897000, 14897000
. : milestone, 14897000,
section candidate
no_agent (15.155 s) : 15155000, 15155000
. : milestone, 15155000,
appsec (16.174 s) : 16174000, 16174000
. : milestone, 16174000,
iast (19.241 s) : 19241000, 19241000
. : milestone, 19241000,
iast_GLOBAL (18.01 s) : 18010000, 18010000
. : milestone, 18010000,
profiling (15.592 s) : 15592000, 15592000
. : milestone, 15592000,
tracing (15.117 s) : 15117000, 15117000
. : milestone, 15117000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~f485063f6f, baseline=1.40.0-SNAPSHOT~a8ea730bf7
dateFormat X
axisFormat %s
section baseline
no_agent (1.468 ms) : 1457, 1480
. : milestone, 1468,
appsec (2.316 ms) : 2275, 2356
. : milestone, 2316,
iast (2.049 ms) : 1999, 2099
. : milestone, 2049,
iast_GLOBAL (2.111 ms) : 2060, 2162
. : milestone, 2111,
profiling (1.929 ms) : 1889, 1968
. : milestone, 1929,
tracing (1.901 ms) : 1863, 1939
. : milestone, 1901,
section candidate
no_agent (1.468 ms) : 1457, 1480
. : milestone, 1468,
appsec (2.282 ms) : 2242, 2322
. : milestone, 2282,
iast (2.053 ms) : 2003, 2102
. : milestone, 2053,
iast_GLOBAL (2.108 ms) : 2057, 2159
. : milestone, 2108,
profiling (1.926 ms) : 1884, 1968
. : milestone, 1926,
tracing (1.919 ms) : 1880, 1957
. : milestone, 1919,
|
@@ -40,6 +40,12 @@ public final class DebuggerConfig { | |||
"internal.exception.replay.only.local.root"; | |||
public static final String DEBUGGER_EXCEPTION_MAX_CAPTURED_FRAMES = | |||
"exception.replay.max.frames.to.capture"; | |||
public static final String DEBUGGER_EXCEPTION_CAPTURE_MAX_FRAMES = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick and not blocking, but given the similarity between both variable names (DEBUGGER_EXCEPTION_CAPTURE_MAX_FRAMES
, DEBUGGER_EXCEPTION_MAX_CAPTURED_FRAMES
) it was somewhat confusing when trying to follow in Config.java
. It would make sense that the old variable (DEBUGGER_EXCEPTION_MAX_CAPTURED_FRAMES
) was aligned with its actual env var form (e.g. DEBUGGER_REPLAY_MAX_FRAMES_TO_CAPTURE
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to decouple what is inside the code what is exposed to the user because more than once we had renaming (debugger-> dynamic instrumentation, exception debugging -> exception replay) and if the code need to follow all the wave of renaming could be worse :)
DD_EXCEPTION_REPLAY_CAPTURE_MAX_FRAMES alias on DD_EXCEPTION_REPLAY_MAX_FRAMES_TO_CAPTURE DD_EXCEPTION_REPLAY_CAPTURE_INTERVAL_SECONDS interval in seconds between 2 capture of the same exceptions DD_EXCEPTION_REPLAY_CAPTURE_INTERMEDIATE_SPANS_ENABLED inverted alias on DD_EXCEPTION_REPLAY_ONLY_LOCAL_ROOT
What Does This Do
DD_EXCEPTION_REPLAY_CAPTURE_MAX_FRAMES
alias onDD_EXCEPTION_REPLAY_MAX_FRAMES_TO_CAPTURE
DD_EXCEPTION_REPLAY_CAPTURE_INTERVAL_SECONDS
interval in seconds between 2 capture of the same exceptionsDD_EXCEPTION_REPLAY_CAPTURE_INTERMEDIATE_SPANS_ENABLED
inverted alias onDD_EXCEPTION_REPLAY_ONLY_LOCAL_ROOT
Motivation
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: DEBUG-2882