-
Notifications
You must be signed in to change notification settings - Fork 293
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
Report profiler initialization and configuration errors to telemetry #8171
Conversation
f4c08ac
to
fe36e56
Compare
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 58 metrics, 5 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.053 s) : 0, 1053477
Total [baseline] (8.603 s) : 0, 8603212
Agent [candidate] (1.054 s) : 0, 1054435
Total [candidate] (8.635 s) : 0, 8635022
section iast
Agent [baseline] (1.19 s) : 0, 1189518
Total [baseline] (9.21 s) : 0, 9210390
Agent [candidate] (1.202 s) : 0, 1201730
Total [candidate] (9.263 s) : 0, 9262728
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.179 s) : 0, 1178986
Total [baseline] (9.173 s) : 0, 9173332
Agent [candidate] (1.204 s) : 0, 1203962
Total [candidate] (9.219 s) : 0, 9219491
section iast_TELEMETRY_OFF
Agent [baseline] (1.176 s) : 0, 1176231
Total [baseline] (9.176 s) : 0, 9175583
Agent [candidate] (1.186 s) : 0, 1185702
Total [candidate] (9.197 s) : 0, 9197183
gantt
title insecure-bank - break down per module: candidate=1.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (712.229 ms) : 0, 712229
BytebuddyAgent [candidate] (712.51 ms) : 0, 712510
GlobalTracer [baseline] (255.744 ms) : 0, 255744
GlobalTracer [candidate] (255.632 ms) : 0, 255632
AppSec [baseline] (56.105 ms) : 0, 56105
AppSec [candidate] (55.329 ms) : 0, 55329
Remote Config [baseline] (722.196 µs) : 0, 722
Remote Config [candidate] (721.907 µs) : 0, 722
Telemetry [baseline] (13.751 ms) : 0, 13751
Telemetry [candidate] (15.188 ms) : 0, 15188
section iast
BytebuddyAgent [baseline] (837.651 ms) : 0, 837651
BytebuddyAgent [candidate] (845.344 ms) : 0, 845344
GlobalTracer [baseline] (247.308 ms) : 0, 247308
GlobalTracer [candidate] (250.085 ms) : 0, 250085
AppSec [baseline] (58.368 ms) : 0, 58368
AppSec [candidate] (59.264 ms) : 0, 59264
IAST [baseline] (21.574 ms) : 0, 21574
IAST [candidate] (21.948 ms) : 0, 21948
Remote Config [baseline] (703.366 µs) : 0, 703
Remote Config [candidate] (698.834 µs) : 0, 699
Telemetry [baseline] (8.839 ms) : 0, 8839
Telemetry [candidate] (9.063 ms) : 0, 9063
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (828.632 ms) : 0, 828632
BytebuddyAgent [candidate] (846.619 ms) : 0, 846619
GlobalTracer [baseline] (246.503 ms) : 0, 246503
GlobalTracer [candidate] (250.702 ms) : 0, 250702
AppSec [baseline] (58.211 ms) : 0, 58211
AppSec [candidate] (59.398 ms) : 0, 59398
IAST [baseline] (21.207 ms) : 0, 21207
IAST [candidate] (21.965 ms) : 0, 21965
Remote Config [baseline] (668.804 µs) : 0, 669
Remote Config [candidate] (698.35 µs) : 0, 698
Telemetry [baseline] (8.787 ms) : 0, 8787
Telemetry [candidate] (9.128 ms) : 0, 9128
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (827.368 ms) : 0, 827368
BytebuddyAgent [candidate] (833.7 ms) : 0, 833700
GlobalTracer [baseline] (246.104 ms) : 0, 246104
GlobalTracer [candidate] (248.623 ms) : 0, 248623
AppSec [baseline] (57.901 ms) : 0, 57901
AppSec [candidate] (58.18 ms) : 0, 58180
IAST [baseline] (20.725 ms) : 0, 20725
IAST [candidate] (20.745 ms) : 0, 20745
Remote Config [baseline] (647.954 µs) : 0, 648
Remote Config [candidate] (650.325 µs) : 0, 650
Telemetry [baseline] (8.552 ms) : 0, 8552
Telemetry [candidate] (8.664 ms) : 0, 8664
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.061 s) : 0, 1060651
Total [baseline] (10.454 s) : 0, 10454214
Agent [candidate] (1.058 s) : 0, 1057644
Total [candidate] (10.41 s) : 0, 10410439
section appsec
Agent [baseline] (1.188 s) : 0, 1188467
Total [baseline] (10.696 s) : 0, 10695560
Agent [candidate] (1.191 s) : 0, 1190922
Total [candidate] (10.721 s) : 0, 10720934
section iast
Agent [baseline] (1.183 s) : 0, 1182858
Total [baseline] (10.975 s) : 0, 10974574
Agent [candidate] (1.181 s) : 0, 1181482
Total [candidate] (10.941 s) : 0, 10941076
section profiling
Agent [baseline] (1.271 s) : 0, 1271465
Total [baseline] (10.851 s) : 0, 10850517
Agent [candidate] (1.274 s) : 0, 1274494
Total [candidate] (10.789 s) : 0, 10789093
gantt
title petclinic - break down per module: candidate=1.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (717.882 ms) : 0, 717882
BytebuddyAgent [candidate] (715.747 ms) : 0, 715747
GlobalTracer [baseline] (257.562 ms) : 0, 257562
GlobalTracer [candidate] (256.351 ms) : 0, 256351
AppSec [baseline] (56.409 ms) : 0, 56409
AppSec [candidate] (56.179 ms) : 0, 56179
Remote Config [baseline] (736.524 µs) : 0, 737
Remote Config [candidate] (717.868 µs) : 0, 718
Telemetry [baseline] (13.097 ms) : 0, 13097
Telemetry [candidate] (13.6 ms) : 0, 13600
section appsec
BytebuddyAgent [baseline] (731.215 ms) : 0, 731215
BytebuddyAgent [candidate] (732.539 ms) : 0, 732539
GlobalTracer [baseline] (252.537 ms) : 0, 252537
GlobalTracer [candidate] (253.457 ms) : 0, 253457
AppSec [baseline] (171.093 ms) : 0, 171093
AppSec [candidate] (171.249 ms) : 0, 171249
Remote Config [baseline] (670.506 µs) : 0, 671
Remote Config [candidate] (675.348 µs) : 0, 675
Telemetry [baseline] (8.229 ms) : 0, 8229
Telemetry [candidate] (8.25 ms) : 0, 8250
IAST [baseline] (19.536 ms) : 0, 19536
IAST [candidate] (19.406 ms) : 0, 19406
section iast
BytebuddyAgent [baseline] (832.599 ms) : 0, 832599
BytebuddyAgent [candidate] (830.829 ms) : 0, 830829
GlobalTracer [baseline] (246.812 ms) : 0, 246812
GlobalTracer [candidate] (246.666 ms) : 0, 246666
AppSec [baseline] (57.686 ms) : 0, 57686
AppSec [candidate] (58.037 ms) : 0, 58037
Remote Config [baseline] (668.724 µs) : 0, 669
Remote Config [candidate] (676.943 µs) : 0, 677
Telemetry [baseline] (8.697 ms) : 0, 8697
Telemetry [candidate] (8.755 ms) : 0, 8755
IAST [baseline] (21.461 ms) : 0, 21461
IAST [candidate] (21.442 ms) : 0, 21442
section profiling
BytebuddyAgent [baseline] (701.342 ms) : 0, 701342
BytebuddyAgent [candidate] (704.181 ms) : 0, 704181
GlobalTracer [baseline] (369.449 ms) : 0, 369449
GlobalTracer [candidate] (369.258 ms) : 0, 369258
AppSec [baseline] (54.053 ms) : 0, 54053
AppSec [candidate] (53.802 ms) : 0, 53802
Remote Config [baseline] (694.143 µs) : 0, 694
Remote Config [candidate] (696.017 µs) : 0, 696
Telemetry [baseline] (8.797 ms) : 0, 8797
Telemetry [candidate] (8.843 ms) : 0, 8843
ProfilingAgent [baseline] (95.36 ms) : 0, 95360
ProfilingAgent [candidate] (95.801 ms) : 0, 95801
Profiling [baseline] (95.384 ms) : 0, 95384
Profiling [candidate] (95.827 ms) : 0, 95827
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 16 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section baseline
no_agent (1.342 ms) : 1322, 1362
. : milestone, 1342,
appsec (1.782 ms) : 1759, 1805
. : milestone, 1782,
appsec_no_iast (1.764 ms) : 1741, 1787
. : milestone, 1764,
iast (1.496 ms) : 1472, 1519
. : milestone, 1496,
profiling (1.55 ms) : 1525, 1575
. : milestone, 1550,
tracing (1.484 ms) : 1459, 1509
. : milestone, 1484,
section candidate
no_agent (1.354 ms) : 1335, 1373
. : milestone, 1354,
appsec (1.756 ms) : 1732, 1780
. : milestone, 1756,
appsec_no_iast (1.768 ms) : 1745, 1792
. : milestone, 1768,
iast (1.501 ms) : 1478, 1525
. : milestone, 1501,
profiling (1.505 ms) : 1481, 1528
. : milestone, 1505,
tracing (1.5 ms) : 1476, 1524
. : milestone, 1500,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section baseline
no_agent (372.039 µs) : 352, 392
. : milestone, 372,
iast (500.226 µs) : 478, 523
. : milestone, 500,
iast_FULL (655.36 µs) : 634, 677
. : milestone, 655,
iast_GLOBAL (522.764 µs) : 501, 545
. : milestone, 523,
iast_HARDCODED_SECRET_DISABLED (497.03 µs) : 475, 519
. : milestone, 497,
iast_INACTIVE (458.6 µs) : 437, 480
. : milestone, 459,
iast_TELEMETRY_OFF (478.534 µs) : 457, 500
. : milestone, 479,
tracing (451.128 µs) : 430, 473
. : milestone, 451,
section candidate
no_agent (380.063 µs) : 360, 400
. : milestone, 380,
iast (498.399 µs) : 477, 520
. : milestone, 498,
iast_FULL (659.476 µs) : 638, 681
. : milestone, 659,
iast_GLOBAL (518.648 µs) : 497, 540
. : milestone, 519,
iast_HARDCODED_SECRET_DISABLED (492.362 µs) : 471, 514
. : milestone, 492,
iast_INACTIVE (454.397 µs) : 433, 476
. : milestone, 454,
iast_TELEMETRY_OFF (484.762 µs) : 463, 507
. : milestone, 485,
tracing (448.417 µs) : 428, 469
. : milestone, 448,
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.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section baseline
no_agent (14.885 s) : 14885000, 14885000
. : milestone, 14885000,
appsec (14.915 s) : 14915000, 14915000
. : milestone, 14915000,
iast (18.899 s) : 18899000, 18899000
. : milestone, 18899000,
iast_GLOBAL (18.054 s) : 18054000, 18054000
. : milestone, 18054000,
profiling (15.135 s) : 15135000, 15135000
. : milestone, 15135000,
tracing (14.939 s) : 14939000, 14939000
. : milestone, 14939000,
section candidate
no_agent (15.641 s) : 15641000, 15641000
. : milestone, 15641000,
appsec (14.984 s) : 14984000, 14984000
. : milestone, 14984000,
iast (18.799 s) : 18799000, 18799000
. : milestone, 18799000,
iast_GLOBAL (18.295 s) : 18295000, 18295000
. : milestone, 18295000,
profiling (15.026 s) : 15026000, 15026000
. : milestone, 15026000,
tracing (15.187 s) : 15187000, 15187000
. : milestone, 15187000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~c1f546e80a, baseline=1.46.0-SNAPSHOT~f768f0218b
dateFormat X
axisFormat %s
section baseline
no_agent (1.48 ms) : 1468, 1491
. : milestone, 1480,
appsec (2.381 ms) : 2338, 2424
. : milestone, 2381,
iast (2.104 ms) : 2050, 2158
. : milestone, 2104,
iast_GLOBAL (2.161 ms) : 2107, 2216
. : milestone, 2161,
profiling (1.977 ms) : 1934, 2021
. : milestone, 1977,
tracing (1.957 ms) : 1915, 1999
. : milestone, 1957,
section candidate
no_agent (1.473 ms) : 1461, 1484
. : milestone, 1473,
appsec (2.376 ms) : 2333, 2419
. : milestone, 2376,
iast (2.115 ms) : 2061, 2169
. : milestone, 2115,
iast_GLOBAL (2.161 ms) : 2106, 2216
. : milestone, 2161,
profiling (1.994 ms) : 1950, 2039
. : milestone, 1994,
tracing (1.966 ms) : 1923, 2008
. : milestone, 1966,
|
return "{" | ||
+ "kind='" | ||
+ profilerKind() | ||
+ '\'' |
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.
Can we move these '
to the same line as what they wrap for readability? Minor nit, ignore if spotless is driving this
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.e.
+ "kind='" + profilerKind() + "\'"
or using Patterns if the overhead is acceptable. Mild preference for down the line if/when we need to debug the state space of env-VM-config misconfigurations.
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.
Spotless :(
I will add suppression and return the original formatting
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.
Yes, Spotless can be annoying 😞
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.
That would be helpful 👍
fe36e56
to
c1f546e
Compare
What Does This Do
It adds shipping profiler initialization and configuration issues to telemetry.
Motivation
Improve the support story for the Java profiler
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: PROF-11074