-
Notifications
You must be signed in to change notification settings - Fork 306
Migrate kotlin coroutines instrumentation to new Context API #8528
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
Migrate kotlin coroutines instrumentation to new Context API #8528
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 60 metrics, 3 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.047 s) : 0, 1047168
Total [baseline] (8.663 s) : 0, 8662959
Agent [candidate] (1.041 s) : 0, 1040933
Total [candidate] (8.745 s) : 0, 8745164
section iast
Agent [baseline] (1.172 s) : 0, 1172108
Total [baseline] (9.256 s) : 0, 9256251
Agent [candidate] (1.186 s) : 0, 1186370
Total [candidate] (9.265 s) : 0, 9264852
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.174 s) : 0, 1173544
Total [baseline] (9.207 s) : 0, 9206861
Agent [candidate] (1.172 s) : 0, 1171630
Total [candidate] (9.236 s) : 0, 9236014
section iast_TELEMETRY_OFF
Agent [baseline] (1.169 s) : 0, 1169040
Total [baseline] (9.21 s) : 0, 9209648
Agent [candidate] (1.17 s) : 0, 1169581
Total [candidate] (9.234 s) : 0, 9233657
gantt
title insecure-bank - break down per module: candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (721.137 ms) : 0, 721137
BytebuddyAgent [candidate] (717.692 ms) : 0, 717692
GlobalTracer [baseline] (240.429 ms) : 0, 240429
GlobalTracer [candidate] (240.651 ms) : 0, 240651
AppSec [baseline] (55.572 ms) : 0, 55572
AppSec [candidate] (55.4 ms) : 0, 55400
Remote Config [baseline] (700.764 µs) : 0, 701
Remote Config [candidate] (690.47 µs) : 0, 690
Telemetry [baseline] (14.331 ms) : 0, 14331
Telemetry [candidate] (11.524 ms) : 0, 11524
section iast
BytebuddyAgent [baseline] (837.076 ms) : 0, 837076
BytebuddyAgent [candidate] (848.988 ms) : 0, 848988
GlobalTracer [baseline] (230.466 ms) : 0, 230466
GlobalTracer [candidate] (232.636 ms) : 0, 232636
IAST [baseline] (22.975 ms) : 0, 22975
IAST [candidate] (23.026 ms) : 0, 23026
AppSec [baseline] (57.232 ms) : 0, 57232
AppSec [candidate] (57.2 ms) : 0, 57200
Remote Config [baseline] (617.007 µs) : 0, 617
Remote Config [candidate] (611.798 µs) : 0, 612
Telemetry [baseline] (8.812 ms) : 0, 8812
Telemetry [candidate] (8.751 ms) : 0, 8751
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (838.265 ms) : 0, 838265
BytebuddyAgent [candidate] (836.942 ms) : 0, 836942
GlobalTracer [baseline] (231.039 ms) : 0, 231039
GlobalTracer [candidate] (231.147 ms) : 0, 231147
IAST [baseline] (22.774 ms) : 0, 22774
IAST [candidate] (22.755 ms) : 0, 22755
AppSec [baseline] (57.12 ms) : 0, 57120
AppSec [candidate] (56.588 ms) : 0, 56588
Remote Config [baseline] (605.022 µs) : 0, 605
Remote Config [candidate] (593.119 µs) : 0, 593
Telemetry [baseline] (8.695 ms) : 0, 8695
Telemetry [candidate] (8.591 ms) : 0, 8591
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (834.704 ms) : 0, 834704
BytebuddyAgent [candidate] (835.013 ms) : 0, 835013
GlobalTracer [baseline] (230.862 ms) : 0, 230862
GlobalTracer [candidate] (230.967 ms) : 0, 230967
IAST [baseline] (22.568 ms) : 0, 22568
IAST [candidate] (22.385 ms) : 0, 22385
AppSec [baseline] (56.781 ms) : 0, 56781
AppSec [candidate] (57.003 ms) : 0, 57003
Remote Config [baseline] (612.993 µs) : 0, 613
Remote Config [candidate] (612.842 µs) : 0, 613
Telemetry [baseline] (8.61 ms) : 0, 8610
Telemetry [candidate] (8.677 ms) : 0, 8677
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.06 s) : 0, 1059737
Total [baseline] (10.569 s) : 0, 10569026
Agent [candidate] (1.042 s) : 0, 1042077
Total [candidate] (10.507 s) : 0, 10506810
section appsec
Agent [baseline] (1.183 s) : 0, 1182619
Total [baseline] (10.721 s) : 0, 10721274
Agent [candidate] (1.187 s) : 0, 1187497
Total [candidate] (10.791 s) : 0, 10791211
section iast
Agent [baseline] (1.173 s) : 0, 1173215
Total [baseline] (11.003 s) : 0, 11003324
Agent [candidate] (1.175 s) : 0, 1175124
Total [candidate] (10.99 s) : 0, 10989582
section profiling
Agent [baseline] (1.26 s) : 0, 1260360
Total [baseline] (10.936 s) : 0, 10936446
Agent [candidate] (1.273 s) : 0, 1273163
Total [candidate] (10.907 s) : 0, 10907075
gantt
title petclinic - break down per module: candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (731.576 ms) : 0, 731576
BytebuddyAgent [candidate] (717.962 ms) : 0, 717962
GlobalTracer [baseline] (243.442 ms) : 0, 243442
GlobalTracer [candidate] (239.839 ms) : 0, 239839
AppSec [baseline] (56.339 ms) : 0, 56339
AppSec [candidate] (55.258 ms) : 0, 55258
Remote Config [baseline] (701.155 µs) : 0, 701
Remote Config [candidate] (684.923 µs) : 0, 685
Telemetry [baseline] (12.454 ms) : 0, 12454
Telemetry [candidate] (13.487 ms) : 0, 13487
section appsec
BytebuddyAgent [baseline] (735.032 ms) : 0, 735032
BytebuddyAgent [candidate] (738.473 ms) : 0, 738473
GlobalTracer [baseline] (236.822 ms) : 0, 236822
GlobalTracer [candidate] (237.597 ms) : 0, 237597
IAST [baseline] (21.329 ms) : 0, 21329
IAST [candidate] (21.503 ms) : 0, 21503
AppSec [baseline] (175.868 ms) : 0, 175868
AppSec [candidate] (176.773 ms) : 0, 176773
Remote Config [baseline] (659.301 µs) : 0, 659
Remote Config [candidate] (657.809 µs) : 0, 658
Telemetry [baseline] (8.623 ms) : 0, 8623
Telemetry [candidate] (8.31 ms
8000
) : 0, 8310
section iast
BytebuddyAgent [baseline] (838.141 ms) : 0, 838141
BytebuddyAgent [candidate] (839.332 ms) : 0, 839332
GlobalTracer [baseline] (230.849 ms) : 0, 230849
GlobalTracer [candidate] (231.57 ms) : 0, 231570
IAST [baseline] (22.828 ms) : 0, 22828
IAST [candidate] (23.0 ms) : 0, 23000
AppSec [baseline] (56.954 ms) : 0, 56954
AppSec [candidate] (56.8 ms) : 0, 56800
Remote Config [baseline] (611.669 µs) : 0, 612
Remote Config [candidate] (604.499 µs) : 0, 604
Telemetry [baseline] (8.837 ms) : 0, 8837
Telemetry [candidate] (8.755 ms) : 0, 8755
section profiling
BytebuddyAgent [baseline] (708.903 ms) : 0, 708903
BytebuddyAgent [candidate] (719.266 ms) : 0, 719266
GlobalTracer [baseline] (349.444 ms) : 0, 349444
GlobalTracer [candidate] (351.626 ms) : 0, 351626
AppSec [baseline] (54.93 ms) : 0, 54930
AppSec [candidate] (54.6 ms) : 0, 54600
Remote Config [baseline] (675.487 µs) : 0, 675
Remote Config [candidate] (675.543 µs) : 0, 676
Telemetry [baseline] (8.96 ms) : 0, 8960
Telemetry [candidate] (9.04 ms) : 0, 9040
ProfilingAgent [baseline] (97.112 ms) : 0, 97112
ProfilingAgent [candidate] (96.998 ms) : 0, 96998
Profiling [baseline] (97.137 ms) : 0, 97137
Profiling [candidate] (97.023 ms) : 0, 97023
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 17 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section baseline
no_agent (1.351 ms) : 1331, 1370
. : milestone, 1351,
appsec (1.752 ms) : 1728, 1776
. : milestone, 1752,
appsec_no_iast (1.746 ms) : 1721, 1772
. : milestone, 1746,
code_origins (1.673 ms) : 1639, 1707
. : milestone, 1673,
iast (1.51 ms) : 1486, 1534
. : milestone, 1510,
profiling (1.523 ms) : 1499, 1547
. : milestone, 1523,
tracing (1.49 ms) : 1466, 1514
. : milestone, 1490,
section candidate
no_agent (1.351 ms) : 1332, 1371
. : milestone, 1351,
appsec (1.706 ms) : 1682, 1730
. : milestone, 1706,
appsec_no_iast (1.719 ms) : 1695, 1744
. : milestone, 1719,
code_origins (1.686 ms) : 1652, 1720
. : milestone, 1686,
iast (1.509 ms) : 1485, 1533
. : milestone, 1509,
profiling (1.561 ms) : 1536, 1586
. : milestone, 1561,
tracing (1.486 ms) : 1461, 1511
. : milestone, 1486,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section baseline
no_agent (384.715 µs) : 365, 405
. : milestone, 385,
iast (510.574 µs) : 489, 533
. : milestone, 511,
iast_FULL (727.157 µs) : 705, 749
. : milestone, 727,
iast_GLOBAL (552.337 µs) : 531, 574
. : milestone, 552,
iast_HARDCODED_SECRET_DISABLED (511.027 µs) : 489, 533
. : milestone, 511,
iast_INACTIVE (465.953 µs) : 444, 488
. : milestone, 466,
iast_TELEMETRY_OFF (495.364 µs) : 473, 518
. : milestone, 495,
tracing (457.849 µs) : 437, 479
. : milestone, 458,
section candidate
no_agent (380.748 µs) : 360, 402
. : milestone, 381,
iast (510.4 µs) : 489, 532
. : milestone, 510,
iast_FULL (730.03 µs) : 708, 752
. : milestone, 730,
iast_GLOBAL (555.788 µs) : 534, 578
. : milestone, 556,
iast_HARDCODED_SECRET_DISABLED (515.166 µs) : 493, 537
. : milestone, 515,
iast_INACTIVE (460.673 µs) : 439, 482
. : milestone, 461,
iast_TELEMETRY_OFF (499.722 µs) : 477, 522
. : milestone, 500,
tracing (455.667 µs) : 435, 477
. : milestone, 456,
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 tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section baseline
no_agent (1.471 ms) : 1459, 1482
. : milestone, 1471,
appsec (2.327 ms) : 2284, 2370
. : milestone, 2327,
iast (2.101 ms) : 2047, 2156
. : milestone, 2101,
iast_GLOBAL (2.154 ms) : 2099, 2209
. : milestone, 2154,
profiling (1.965 ms) : 1922, 2008
. : milestone, 1965,
tracing (1.949 ms) : 1907, 1991
. : milestone, 1949,
section candidate
no_agent (1.471 ms) : 1460, 1483
. : milestone, 1471,
appsec (2.322 ms) : 2279, 2365
. : milestone, 2322,
iast (2.109 ms) : 2054, 2164
. : milestone, 2109,
iast_GLOBAL (2.149 ms) : 2094, 2204
. : milestone, 2149,
profiling (1.96 ms) : 1917, 2003
. : milestone, 1960,
tracing (1.945 ms) : 1903, 1987
. : milestone, 1945,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~f3c421a0fe, baseline=1.48.0-SNAPSHOT~04b1afde28
dateFormat X
axisFormat %s
section baseline
no_agent (15.448 s) : 15448000, 15448000
. : milestone, 15448000,
appsec (14.727 s) : 14727000, 14727000
. : milestone, 14727000,
iast (18.361 s) : 18361000, 18361000
. : milestone, 18361000,
iast_GLOBAL (17.933 s) : 17933000, 17933000
. : milestone, 17933000,
profiling (15.117 s) : 15117000, 15117000
. : milestone, 15117000,
tracing (14.83 s) : 14830000, 14830000
. : milestone, 14830000,
section candidate
no_agent (14.746 s) : 14746000, 14746000
. : milestone, 14746000,
appsec (15.217 s) : 15217000, 15217000
. : milestone, 15217000,
iast (18.386 s) : 18386000, 18386000
. : milestone, 18386000,
iast_GLOBAL (17.721 s) : 17721000, 17721000
. : milestone, 17721000,
profiling (14.967 s) : 14967000, 14967000
. : milestone, 14967000,
tracing (14.757 s) : 14757000, 14757000
. : milestone, 14757000,
|
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.
A bit hard to review the change without running them but it looks good to be merged into project branch! 👍
New Context API seems to simplify things a bit. Glad to see things starting to take shape.
f3c421a
to
8861c68
Compare
Additional Notes
Tests are expected to fail while the scope manager has not yet been replaced.
That's why the final target of this stacked PR is the
project/context
feature branch.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: APMAPI-963