-
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
Make redisson tracing the full request #7571
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 49 metrics, 14 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.052 s) : 0, 1052093
Total [baseline] (8.489 s) : 0, 8489065
Agent [candidate] (1.051 s) : 0, 1050920
Total [candidate] (8.551 s) : 0, 8550610
section iast
Agent [baseline] (1.174 s) : 0, 1174332
Total [baseline] (8.963 s) : 0, 8962612
Agent [candidate] (1.178 s) : 0, 1178280
Total [candidate] (8.963 s) : 0, 8963284
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.183 s) : 0, 1182806
Total [baseline] (8.961 s) : 0, 8960531
Agent [candidate] (1.174 s) : 0, 1174420
Total [candidate] (8.993 s) : 0, 8992712
section iast_TELEMETRY_OFF
Agent [baseline] (1.18 s) : 0, 1179806
Total [baseline] (8.994 s) : 0, 8993527
Agent [candidate] (1.169 s) : 0, 1169353
Total [candidate] (8.947 s) : 0, 8947245
gantt
title insecure-bank - break down per module: candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (671.345 ms) : 0, 671345
BytebuddyAgent [candidate] (670.629 ms) : 0, 670629
GlobalTracer [baseline] (307.474 ms) : 0, 307474
GlobalTracer [candidate] (307.408 ms) : 0, 307408
AppSec [baseline] (51.447 ms) : 0, 51447
AppSec [candidate] (51.175 ms) : 0, 51175
Remote Config [baseline] (694.484 µs) : 0, 694
Remote Config [candidate] (671.424 µs) : 0, 671
Telemetry [baseline] (7.52 ms) : 0, 7520
Telemetry [candidate] (7.436 ms) : 0, 7436
section iast
BytebuddyAgent [baseline] (781.265 ms) : 0, 781265
BytebuddyAgent [candidate] (784.763 ms) : 0, 784763
GlobalTracer [baseline] (296.107 ms) : 0, 296107
GlobalTracer [candidate] (296.633 ms) : 0, 296633
AppSec [baseline] (52.502 ms) : 0, 52502
AppSec [candidate] (52.044 ms) : 0, 52044
IAST [baseline] (22.119 ms) : 0, 22119
IAST [candidate] (23.318 ms) : 0, 23318
Remote Config [baseline] (603.359 µs) : 0, 603
Remote Config [candidate] (580.019 µs) : 0, 580
Telemetry [baseline] (8.127 ms) : 0, 8127
Telemetry [candidate] (7.285 ms) : 0, 7285
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (786.595 ms) : 0, 786595
BytebuddyAgent [candidate] (780.746 ms) : 0, 780746
GlobalTracer [baseline] (297.632 ms) : 0, 297632
GlobalTracer [candidate] (296.169 ms) : 0, 296169
AppSec [baseline] (53.32 ms) : 0, 53320
AppSec [candidate] (52.301 ms) : 0, 52301
IAST [baseline] (23.585 ms) : 0, 23585
IAST [candidate] (22.804 ms) : 0, 22804
Remote Config [baseline] (603.245 µs) : 0, 603
Remote Config [candidate] (595.014 µs) : 0, 595
Telemetry [baseline] (7.337 ms) : 0, 7337
Telemetry [candidate] (8.147 ms) : 0, 8147
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (784.034 ms) : 0, 784034
BytebuddyAgent [candidate] (777.369 ms) : 0, 777369
GlobalTracer [baseline] (297.935 ms) : 0, 297935
GlobalTracer [candidate] (295.956 ms) : 0, 295956
AppSec [baseline] (52.76 ms) : 0, 52760
AppSec [candidate] (53.017 ms) : 0, 53017
IAST [baseline] (22.011 ms) : 0, 22011
IAST [candidate] (20.78 ms) : 0, 20780
Remote Config [baseline] (593.816 µs) : 0, 594
Remote Config [candidate] (589.393 µs) : 0, 589
Telemetry [baseline] (8.745 ms) : 0, 8745
Telemetry [candidate] (7.991 ms) : 0, 7991
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.059 s) : 0, 1058922
Total [baseline] (10.395 s) : 0, 10395190
Agent [candidate] (1.053 s) : 0, 1053482
Total [candidate] (10.365 s) : 0, 10365249
section appsec
Agent [baseline] (1.187 s) : 0, 1187194
Total [baseline] (10.598 s) : 0, 10598385
Agent [candidate] (1.186 s) : 0, 1185597
Total [candidate] (10.533 s) : 0, 10532532
section iast
Agent [baseline] (1.185 s) : 0, 1185320
Total [baseline] (10.861 s) : 0, 10860733
Agent [candidate] (1.174 s) : 0, 1173853
Total [candidate] (10.795 s) : 0, 10795012
section profiling
Agent [baseline] (1.265 s) : 0, 1265389
Total [baseline] (10.679 s) : 0, 10679172
Agent [candidate] (1.254 s) : 0, 1253643
Total [candidate] (10.675 s) : 0, 10674595
gantt
title petclinic - break down per module: candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (676.183 ms) : 0, 676183
BytebuddyAgent [candidate] (674.055 ms) : 0, 674055
GlobalTracer [baseline] (309.183 ms) : 0, 309183
GlobalTracer [candidate] (306.044 ms) : 0, 306044
AppSec [baseline] (51.67 ms) : 0, 51670
AppSec [candidate] (51.537 ms) : 0, 51537
Remote Config [baseline] (682.424 µs) : 0, 682
Remote Config [candidate] (694.362 µs) : 0, 694
Telemetry [baseline] (7.486 ms) : 0, 7486
Telemetry [candidate] (7.479 ms) : 0, 7479
section appsec
BytebuddyAgent [baseline] (692.247 ms) : 0, 692247
BytebuddyAgent [candidate] (691.4 ms) : 0, 691400
GlobalTracer [baseline] (301.902 ms) : 0, 301902
GlobalTracer [candidate] (301.009 ms) : 0, 301009
AppSec [baseline] (158.879 ms) : 0, 158879
AppSec [candidate] (160.449 ms) : 0, 160449
Remote Config [baseline] (631.276 µs) : 0, 631
Remote Config [candidate] (627.672 µs) : 0, 628
Telemetry [baseline] (9.255 ms) : 0, 9255
Telemetry [candidate] (8.577 ms) : 0, 8577
IAST [baseline] (21.333 ms) : 0, 21333
IAST [candidate] (19.829 ms) : 0, 19829
section iast
BytebuddyAgent [baseline] (790.225 ms) : 0, 790225
BytebuddyAgent [candidate] (780.697 ms) : 0, 780697
GlobalTracer [baseline] (298.194 ms) : 0, 298194
GlobalTracer [candidate] (296.141 ms) : 0, 296141
AppSec [baseline] (52.321 ms) : 0, 52321
AppSec [candidate] (54.556 ms) : 0, 54556
Remote Config [baseline] (1.323 ms) : 0, 1323
Remote Config [candidate] (577.812 µs) : 0, 578
Telemetry [baseline] (7.38 ms) : 0, 7380
Telemetry [candidate] (7.323 ms) : 0, 7323
IAST [baseline] (22.112 ms) : 0, 22112
IAST [candidate] (20.903 ms) : 0, 20903
section profiling
BytebuddyAgent [baseline] (675.594 ms) : 0, 675594
BytebuddyAgent [candidate] (667.875 ms) : 0, 667875
GlobalTracer [baseline] (393.001 ms) : 0, 393001
GlobalTracer [candidate] (390.423 ms) : 0, 390423
AppSec [baseline] (52.72 ms) : 0, 52720
AppSec [candidate] (52.38 ms) : 0, 52380
Remote Config [baseline] (705.826 µs) : 0, 706
Remote Config [candidate] (696.237 µs) : 0, 696
Telemetry [baseline] (7.526 ms) : 0, 7526
Telemetry [candidate] (7.399 ms) : 0, 7399
ProfilingAgent [baseline] (97.395 ms) : 0, 97395
ProfilingAgent [candidate] (96.8 ms) : 0, 96800
Profiling [baseline] (97.419 ms) : 0, 97419
Profiling [candidate] (96.824 ms) : 0, 96824
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 18 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section baseline
no_agent (1.337 ms) : 1317, 1357
. : milestone, 1337,
appsec (1.721 ms) : 1697, 1745
. : milestone, 1721,
appsec_no_iast (1.723 ms) : 1699, 1747
. : milestone, 1723,
iast (1.467 ms) : 1445, 1489
. : milestone, 1467,
profiling (1.484 ms) : 1460, 1507
. : milestone, 1484,
tracing (1.463 ms) : 1439, 1486
. : milestone, 1463,
section candidate
no_agent (1.336 ms) : 1317, 1355
. : milestone, 1336,
appsec (1.698 ms) : 1674, 1723
. : milestone, 1698,
appsec_no_iast (1.698 ms) : 1674, 1722
. : milestone, 1698,
iast (1.48 ms) : 1458, 1502
. : milestone, 1480,
profiling (1.498 ms) : 1474, 1523
. : milestone, 1498,
tracing (1.467 ms) : 1443, 1492
. : milestone, 1467,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section baseline
no_agent (367.33 µs) : 348, 387
. : milestone, 367,
iast (478.811 µs) : 456, 501
. : milestone, 479,
iast_FULL (551.945 µs) : 531, 573
. : milestone, 552,
iast_GLOBAL (506.969 µs) : 486, 528
. : milestone, 507,
iast_HARDCODED_SECRET_DISABLED (483.288 µs) : 462, 505
. : milestone, 483,
iast_INACTIVE (442.732 µs) : 422, 463
. : milestone, 443,
iast_TELEMETRY_OFF (466.769 µs) : 444, 489
. : milestone, 467,
tracing (436.869 µs) : 417, 457
. : milestone, 437,
section candidate
no_agent (366.085 µs) : 345, 387
. : milestone, 366,
iast (482.509 µs) : 460, 505
. : milestone, 483,
iast_FULL (559.276 µs) : 537, 581
. : milestone, 559,
iast_GLOBAL (503.798 µs) : 481, 526
. : milestone, 504,
iast_HARDCODED_SECRET_DISABLED (478.274 µs) : 456, 500
. : milestone, 478,
iast_INACTIVE (439.041 µs) : 419, 459
. : milestone, 439,
iast_TELEMETRY_OFF (473.539 µs) : 451, 496
. : milestone, 474,
tracing (439.663 µs) : 419, 461
. : milestone, 440,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section baseline
no_agent (15.042 s) : 15042000, 15042000
. : milestone, 15042000,
appsec (15.231 s) : 15231000, 15231000
. : milestone, 15231000,
iast (18.963 s) : 18963000, 18963000
. : milestone, 18963000,
iast_GLOBAL (17.791 s) : 17791000, 17791000
. : milestone, 17791000,
profiling (15.397 s) : 15397000, 15397000
. : milestone, 15397000,
tracing (14.987 s) : 14987000, 14987000
. : milestone, 14987000,
section candidate
no_agent (14.997 s) : 14997000, 14997000
. : milestone, 14997000,
appsec (15.024 s) : 15024000, 15024000
. : milestone, 15024000,
iast (18.831 s) : 18831000, 18831000
. : milestone, 18831000,
iast_GLOBAL (17.927 s) : 17927000, 17927000
. : milestone, 17927000,
profiling (15.369 s) : 15369000, 15369000
. : milestone, 15369000,
tracing (15.114 s) : 15114000, 15114000
. : milestone, 15114000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~ee3c323b60, baseline=1.40.0-SNAPSHOT~0a583fed33
dateFormat X
axisFormat %s
section baseline
no_agent (1.452 ms) : 1440, 1463
. : milestone, 1452,
appsec (2.206 ms) : 2171, 2241
. : milestone, 2206,
iast (1.968 ms) : 1925, 2011
. : milestone, 1968,
iast_GLOBAL (2.034 ms) : 1988, 2079
. : milestone, 2034,
profiling (1.855 ms) : 1820, 1889
. : milestone, 1855,
tracing (1.831 ms) : 1797, 1864
. : milestone, 1831,
section candidate
no_agent (1.456 ms) : 1445, 1468
. : milestone, 1456,
appsec (2.212 ms) : 2177, 2247
. : milestone, 2212,
iast (1.952 ms) : 1909, 1994
. : milestone, 1952,
iast_GLOBAL (2.011 ms) : 1967, 2055
. : milestone, 2011,
profiling (2.334 ms) : 2146, 2521
. : milestone, 2334,
tracing (1.83 ms) : 1797, 1863
. : milestone, 1830,
|
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: Can you move all three redisson instrumentation under a redisson
folder to follow conventions?
(yeah, I know not all our instrumentations follow them, but fixing this one is better than nothing)
What Does This Do
When tracing redisson redis request, we're only tracing the synchronous part (see #7510 )
Now we're instead capturing a continuation and finish when the command actually finishes. The tricky part here is to follow the changes on interfaces and method signature of the redisson codebase.
In details:
RPromise
with netty future listenersRFuture
with future listenersCompletionStage
but needs a method handle trick to get the promise since theRPromise
class has been removed somewhere on the 3.x and would have muzzle blocking the instrumentation on recent versions.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: [PROJ-IDENT]