Enable user event tracking only when AppSec is enabled (#5756)#5765
Merged
Conversation
* Fixed User Event Tracking activation
BenchmarksStartupParameters
See matching parameters
SummaryFound 7 performance improvements and 2 performance regressions! Performance is the same for 53 cases.
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.20.0-SNAPSHOT~d6813eb2d1, baseline=1.20.0-SNAPSHOT~118962aca3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (989.688 ms) : 0, 989688
Total [baseline] (9.179 s) : 0, 9178616
Agent [candidate] (984.808 ms) : 0, 984808
Total [candidate] (9.15 s) : 0, 9150218
section appsec
Agent [baseline] (1.073 s) : 0, 1073210
Total [baseline] (9.251 s) : 0, 9251150
Agent [candidate] (1.069 s) : 0, 1068971
Total [candidate] (9.256 s) : 0, 9255630
section iast
Agent [baseline] (1.108 s) : 0, 1107748
Total [baseline] (9.422 s) : 0, 9422417
Agent [candidate] (1.092 s) : 0, 1091911
Total [candidate] (9.435 s) : 0, 9434688
section profiling
Agent [baseline] (1.171 s) : 0, 1170788
Total [baseline] (9.474 s) : 0, 9473746
Agent [candidate] (1.153 s) : 0, 1153130
Total [candidate] (9.537 s) : 0, 9536509
gantt
title petclinic - break down per module: candidate=1.20.0-SNAPSHOT~d6813eb2d1, baseline=1.20.0-SNAPSHOT~118962aca3
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (613.675 ms) : 0, 613675
BytebuddyAgent [candidate] (610.437 ms) : 0, 610437
GlobalTracer [baseline] (284.911 ms) : 0, 284911
GlobalTracer [candidate] (283.987 ms) : 0, 283987
AppSec [baseline] (50.071 ms) : 0, 50071
AppSec [candidate] (50.185 ms) : 0, 50185
Remote Config [baseline] (663.795 µs) : 0, 664
Remote Config [candidate] (661.579 µs) : 0, 662
Telemetry [baseline] (5.982 ms) : 0, 5982
Telemetry [candidate] (5.412 ms) : 0, 5412
section appsec
BytebuddyAgent [baseline] (612.919 ms) : 0, 612919
BytebuddyAgent [candidate] (609.763 ms) : 0, 609763
GlobalTracer [baseline] (284.127 ms) : 0, 284127
GlobalTracer [candidate] (283.748 ms) : 0, 283748
AppSec [baseline] (135.328 ms) : 0, 135328
AppSec [candidate] (135.402 ms) : 0, 135402
Remote Config [baseline] (717.628 µs) : 0, 718
Remote Config [candidate] (734.176 µs) : 0, 734
Telemetry [baseline] (5.757 ms) : 0, 5757
Telemetry [candidate] (5.139 ms) : 0, 5139
section iast
BytebuddyAgent [baseline] (729.996 ms) : 0, 729996
BytebuddyAgent [candidate] (717.773 ms) : 0, 717773
GlobalTracer [baseline] (274.651 ms) : 0, 274651
GlobalTracer [candidate] (272.405 ms) : 0, 272405
AppSec [baseline] (47.923 ms) : 0, 47923
AppSec [candidate] (47.496 ms) : 0, 47496
Remote Config [baseline] (565.172 µs) : 0, 565
Remote Config [candidate] (659.624 µs) : 0, 660
Telemetry [baseline] (5.757 ms) : 0, 5757
Telemetry [candidate] (5.644 ms) : 0, 5644
IAST [baseline] (14.071 ms) : 0, 14071
IAST [candidate] (13.394 ms) : 0, 13394
section profiling
ProfilingAgent [baseline] (78.033 ms) : 0, 78033
ProfilingAgent [candidate] (76.937 ms) : 0, 76937
BytebuddyAgent [baseline] (632.602 ms) : 0, 632602
BytebuddyAgent [candidate] (620.941 ms) : 0, 620941
GlobalTracer [baseline] (350.282 ms) : 0, 350282
GlobalTracer [candidate] (347.047 ms) : 0, 347047
AppSec [baseline] (49.503 ms) : 0, 49503
AppSec [candidate] (49.529 ms) : 0, 49529
Remote Config [baseline] (666.693 µs) : 0, 667
Remote Config [candidate] (654.611 µs) : 0, 655
Telemetry [baseline] (6.062 ms) : 0, 6062
Telemetry [candidate] (5.363 ms) : 0, 5363
Profiling [baseline] (78.057 ms) : 0, 78057
Profiling [candidate] (76.962 ms) : 0, 76962
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.20.0-SNAPSHOT~d6813eb2d1, baseline=1.20.0-SNAPSHOT~118962aca3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.002 s) : 0, 1001785
Total [baseline] (8.703 s) : 0, 8702512
Agent [candidate] (986.925 ms) : 0, 986925
Total [candidate] (8.693 s) : 0, 8692611
section appsec
Agent [baseline] (1.072 s) : 0, 1072200
Total [baseline] (8.694 s) : 0, 8693929
Agent [candidate] (1.072 s) : 0, 1071592
Total [candidate] (8.718 s) : 0, 8718076
section iast
Agent [baseline] (1.094 s) : 0, 1093853
Total [baseline] (9.229 s) : 0, 9229031
Agent [candidate] (1.084 s) : 0, 1084150
Total [candidate] (9.185 s) : 0, 9184862
section profiling
Agent [baseline] (1.158 s) : 0, 1158229
Total [baseline] (8.874 s) : 0, 8873556
Agent [candidate] (1.153 s) : 0, 1152645
Total [candidate] (8.834 s) : 0, 8834101
gantt
title insecure-bank - break down per module: candidate=1.20.0-SNAPSHOT~d6813eb2d1, baseline=1.20.0-SNAPSHOT~118962aca3
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (621.324 ms) : 0, 621324
BytebuddyAgent [candidate] (611.635 ms) : 0, 611635
GlobalTracer [baseline] (288.768 ms) : 0, 288768
GlobalTracer [candidate] (284.775 ms) : 0, 284775
AppSec [baseline] (50.185 ms) : 0, 50185
AppSec [candidate] (50.058 ms) : 0, 50058
Remote Config [baseline] (670.23 µs) : 0, 670
Remote Config [candidate] (661.56 µs) : 0, 662
Telemetry [baseline] (6.033 ms) : 0, 6033
Telemetry [candidate] (5.429 ms) : 0, 5429
section appsec
BytebuddyAgent [baseline] (612.533 ms) : 0, 612533
BytebuddyAgent [candidate] (611.02 ms) : 0, 611020
GlobalTracer [baseline] (283.947 ms) : 0, 283947
GlobalTracer [candidate] (284.751 ms) : 0, 284751
AppSec [baseline] (135.031 ms) : 0, 135031
AppSec [candidate] (135.62 ms) : 0, 135620
Remote Config [baseline] (724.882 µs) : 0, 725
Remote Config [candidate] (732.27 µs) : 0, 732
Telemetry [baseline] (5.74 ms) : 0, 5740
Telemetry [candidate] (5.155 ms) : 0, 5155
section iast
BytebuddyAgent [baseline] (720.087 ms) : 0, 720087
BytebuddyAgent [candidate] (712.187 ms) : 0, 712187
GlobalTracer [baseline] (271.205 ms) : 0, 271205
GlobalTracer [candidate] (270.949 ms) : 0, 270949
AppSec [baseline] (47.633 ms) : 0, 47633
AppSec [candidate] (47.098 ms) : 0, 47098
Remote Config [baseline] (562.185 µs) : 0, 562
Remote Config [candidate] (645.654 µs) : 0, 646
Telemetry [baseline] (5.783 ms) : 0, 5783
Telemetry [candidate] (5.592 ms) : 0, 5592
IAST [baseline] (14.066 ms) : 0, 14066
IAST [candidate] (13.304 ms) : 0, 13304
section profiling
ProfilingAgent [baseline] (77.048 ms) : 0, 77048
ProfilingAgent [candidate] (75.694 ms) : 0, 75694
BytebuddyAgent [baseline] (625.372 ms) : 0, 625372
BytebuddyAgent [candidate] (621.913 ms) : 0, 621913
GlobalTracer [baseline] (347.045 ms) : 0, 347045
GlobalTracer [candidate] (347.279 ms) : 0, 347279
AppSec [baseline] (49.212 ms) : 0, 49212
AppSec [candidate] (49.183 ms) : 0, 49183
Remote Config [baseline] (652.68 µs) : 0, 653
Remote Config [candidate] (648.07 µs) : 0, 648
Telemetry [baseline] (6.029 ms) : 0, 6029
Telemetry [candidate] (5.306 ms) : 0, 5306
Profiling [baseline] (77.072 ms) : 0, 77072
Profiling [candidate] (75.718 ms) : 0, 75718
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 24 cases. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.20.0-SNAPSHOT~d6813eb2d1, baseline=1.20.0-SNAPSHOT~118962aca3
dateFormat X
axisFormat %s
section baseline
no_agent (1.319 ms) : 1299, 1339
. : milestone, 1319,
appsec (1.669 ms) : 1645, 1693
. : milestone, 1669,
iast (1.458 ms) : 1434, 1482
. : milestone, 1458,
profiling (1.474 ms) : 1448, 1500
. : milestone, 1474,
tracing (1.42 ms) : 1395, 1445
. : milestone, 1420,
section candidate
no_agent (1.348 ms) : 1329, 1367
. : milestone, 1348,
appsec (1.669 ms) : 1645, 1693
. : milestone, 1669,
iast (1.449 ms) : 1425, 1473
. : milestone, 1449,
profiling (1.442 ms) : 1418, 1467
. : milestone, 1442,
tracing (1.426 ms) : 1401, 1450
. : milestone, 1426,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.20.0-SNAPSHOT~d6813eb2d1, baseline=1.20.0-SNAPSHOT~118962aca3
dateFormat X
axisFormat %s
section baseline
no_agent (356.312 µs) : 336, 376
. : milestone, 356,
appsec (656.372 µs) : 635, 677
. : milestone, 656,
iast (449.018 µs) : 428, 470
. : milestone, 449,
iast_FULL (500.026 µs) : 479, 521
. : milestone, 500,
iast_INACTIVE (421.836 µs) : 401, 442
. : milestone, 422,
profiling (447.509 µs) : 426, 469
. : milestone, 448,
tracing (428.535 µs) : 408, 449
. : milestone, 429,
section candidate
no_agent (363.895 µs) : 344, 383
. : milestone, 364,
appsec (665.822 µs) : 644, 687
. : milestone, 666,
iast (454.721 µs) : 434, 475
. : milestone, 455,
iast_FULL (508.357 µs) : 488, 529
. : milestone, 508,
iast_INACTIVE (428.848 µs) : 407, 450
. : milestone, 429,
profiling (433.241 µs) : 412, 454
. : milestone, 433,
tracing (422.116 µs) : 401, 443
. : milestone, 422,
|
ValentinZakharov
approved these changes
Aug 23, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Fixed activation for User Event Tracking.
Active only if AppSec is active with DD_APPSEC_ENABLED=true or via remote config.
Motivation
Customer reported an issue when User Event Tracking was working even with inactive AppSec.
Additional Notes
Backport of #5756