-
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
Update muzzleCheck for kafka #7912
Conversation
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 also update the 0.11 version of kafka-clients to have a max version instrumented?
I think with this change, versions 3.8.0+ could still be double instrumented
Kafka / producer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 54 metrics, 9 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.091 s) : 0, 1091140
Total [baseline] (8.662 s) : 0, 8661705
Agent [candidate] (1.099 s) : 0, 1098716
Total [candidate] (8.686 s) : 0, 8686043
section iast
Agent [baseline] (1.226 s) : 0, 1225722
Total [baseline] (9.254 s) : 0, 9253949
Agent [candidate] (1.215 s) : 0, 1215376
Total [candidate] (9.186 s) : 0, 9185879
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.216 s) : 0, 1215808
Total [baseline] (9.197 s) : 0, 9196541
Agent [candidate] (1.221 s) : 0, 1220844
Total [candidate] (9.18 s) : 0, 9179829
section iast_TELEMETRY_OFF
Agent [baseline] (1.221 s) : 0, 1220919
Total [baseline] (9.187 s) : 0, 9187355
Agent [candidate] (1.211 s) : 0, 1211170
Total [candidate] (9.19 s) : 0, 9189990
gantt
title insecure-bank - break down per module: candidate=1.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (693.662 ms) : 0, 693662
BytebuddyAgent [candidate] (700.377 ms) : 0, 700377
GlobalTracer [baseline] (317.187 ms) : 0, 317187
GlobalTracer [candidate] (318.727 ms) : 0, 318727
AppSec [baseline] (54.506 ms) : 0, 54506
AppSec [candidate] (54.888 ms) : 0, 54888
Remote Config [baseline] (678.242 µs) : 0, 678
Remote Config [candidate] (693.925 µs) : 0, 694
Telemetry [baseline] (11.409 ms) : 0, 11409
Telemetry [candidate] (10.137 ms) : 0, 10137
section iast
BytebuddyAgent [baseline] (815.476 ms) : 0, 815476
BytebuddyAgent [candidate] (809.15 ms) : 0, 809150
GlobalTracer [baseline] (308.515 ms) : 0, 308515
GlobalTracer [candidate] (306.35 ms) : 0, 306350
AppSec [baseline] (56.874 ms) : 0, 56874
AppSec [candidate] (57.737 ms) : 0, 57737
IAST [baseline] (22.827 ms) : 0, 22827
IAST [candidate] (20.345 ms) : 0, 20345
Remote Config [baseline] (635.279 µs) : 0, 635
Remote Config [candidate] (613.994 µs) : 0, 614
Telemetry [baseline] (7.6 ms) : 0, 7600
Telemetry [candidate] (7.482 ms) : 0, 7482
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (808.948 ms) : 0, 808948
BytebuddyAgent [candidate] (813.543 ms) : 0, 813543
GlobalTracer [baseline] (306.585 ms) : 0, 306585
GlobalTracer [candidate] (306.503 ms) : 0, 306503
AppSec [baseline] (57.849 ms) : 0, 57849
AppSec [candidate] (58.109 ms) : 0, 58109
IAST [baseline] (20.668 ms) : 0, 20668
IAST [candidate] (20.865 ms) : 0, 20865
Remote Config [baseline] (612.784 µs) : 0, 613
Remote Config [candidate] (621.853 µs) : 0, 622
Telemetry [baseline] (7.461 ms) : 0, 7461
Telemetry [candidate] (7.432 ms) : 0, 7432
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (811.839 ms) : 0, 811839
BytebuddyAgent [candidate] (805.378 ms) : 0, 805378
GlobalTracer [baseline] (308.469 ms) : 0, 308469
GlobalTracer [candidate] (305.645 ms) : 0, 305645
AppSec [baseline] (58.175 ms) : 0, 58175
AppSec [candidate] (58.315 ms) : 0, 58315
IAST [baseline] (20.582 ms) : 0, 20582
IAST [candidate] (20.075 ms) : 0, 20075
Remote Config [baseline] (627.179 µs) : 0, 627
Remote Config [candidate] (612.862 µs) : 0, 613
Telemetry [baseline] (7.416 ms) : 0, 7416
Telemetry [candidate] (7.416 ms) : 0, 7416
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.088 s) : 0, 1088157
Total [baseline] (10.517 s) : 0, 10516945
Agent [candidate] (1.093 s) : 0, 1092506
Total [candidate] (10.487 s) : 0, 10487115
section appsec
Agent [baseline] (1.224 s) : 0, 1224478
Total [baseline] (10.703 s) : 0, 10702724
Agent [candidate] (1.221 s) : 0, 1220792
Total [candidate] (10.681 s) : 0, 10680584
section iast
Agent [baseline] (1.214 s) : 0, 1214080
Total [baseline] (10.938 s) : 0, 10937763
Agent [candidate] (1.216 s) : 0, 1215763
Total [candidate] (10.986 s) : 0, 10986382
section profiling
Agent [baseline] (1.286 s) : 0, 1285876
Total [baseline] (10.768 s) : 0, 10767725
Agent [candidate] (1.287 s) : 0, 1286854
Total [candidate] (10.823 s) : 0, 10823466
gantt
title petclinic - break down per module: candidate=1.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (690.919 ms) : 0, 690919
BytebuddyAgent [candidate] (694.229 ms) : 0, 694229
GlobalTracer [baseline] (316.147 ms) : 0, 316147
GlobalTracer [candidate] (318.083 ms) : 0, 318083
AppSec [baseline] (54.688 ms) : 0, 54688
AppSec [candidate] (54.449 ms) : 0, 54449
Remote Config [baseline] (683.328 µs) : 0, 683
Remote Config [candidate] (690.46 µs) : 0, 690
Telemetry [baseline] (12.047 ms) : 0, 12047
Telemetry [candidate] (11.401 ms) : 0, 11401
section appsec
BytebuddyAgent [baseline] (710.943 ms) : 0, 710943
BytebuddyAgent [candidate] (709.054 ms) : 0, 709054
GlobalTracer [baseline] (314.389 ms) : 0, 314389
GlobalTracer [candidate] (314.089 ms) : 0, 314089
AppSec [baseline] (167.419 ms) : 0, 167419
AppSec [candidate] (165.694 ms) : 0, 165694
Remote Config [baseline] (639.99 µs) : 0, 640
Remote Config [candidate] (643.037 µs) : 0, 643
Telemetry [baseline] (7.908 ms) : 0, 7908
Telemetry [candidate] (7.501 ms) : 0, 7501
IAST [baseline] (18.943 ms) : 0, 18943
IAST [candidate] (20.288 ms) : 0, 20288
section iast
BytebuddyAgent [baseline] (807.353 ms) : 0, 807353
BytebuddyAgent [candidate] (808.827 ms) : 0, 808827
GlobalTracer [baseline] (305.938 ms) : 0, 305938
GlobalTracer [candidate] (306.642 ms) : 0, 306642
AppSec [baseline] (58.101 ms) : 0, 58101
AppSec [candidate] (56.073 ms) : 0, 56073
Remote Config [baseline] (607.183 µs) : 0, 607
Remote Config [candidate] (611.857 µs) : 0, 612
Telemetry [baseline] (7.515 ms) : 0, 7515
Telemetry [candidate] (7.481 ms) : 0, 7481
IAST [baseline] (20.945 ms) : 0, 20945
IAST [candidate] (22.438 ms) : 0, 22438
section profiling
BytebuddyAgent [baseline] (685.816 ms) : 0, 685816
BytebuddyAgent [candidate] (686.51 ms) : 0, 686510
GlobalTracer [baseline] (400.212 ms) : 0, 400212
GlobalTracer [candidate] (400.069 ms) : 0, 400069
AppSec [baseline] (55.108 ms) : 0, 55108
AppSec [candidate] (54.948 ms) : 0, 54948
Remote Config [baseline] (673.12 µs) : 0, 673
Remote Config [candidate] (675.406 µs) : 0, 675
Telemetry [baseline] (13.429 ms) : 0, 13429
Telemetry [candidate] (10.143 ms) : 0, 10143
ProfilingAgent [baseline] (91.746 ms) : 0, 91746
ProfilingAgent [candidate] (95.58 ms) : 0, 95580
Profiling [baseline] (91.77 ms) : 0, 91770
Profiling [candidate] (95.604 ms) : 0, 95604
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 17 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section baseline
no_agent (372.471 µs) : 352, 393
. : milestone, 372,
iast (487.747 µs) : 466, 509
. : milestone, 488,
iast_FULL (657.579 µs) : 636, 679
. : milestone, 658,
iast_GLOBAL (517.443 µs) : 496, 539
. : milestone, 517,
iast_HARDCODED_SECRET_DISABLED (492.915 µs) : 471, 514
. : milestone, 493,
iast_INACTIVE (456.85 µs) : 435, 479
. : milestone, 457,
iast_TELEMETRY_OFF (482.126 µs) : 460, 504
. : milestone, 482,
tracing (450.009 µs) : 429, 471
. : milestone, 450,
section candidate
no_agent (373.292 µs) : 353, 394
. : milestone, 373,
iast (496.561 µs) : 475, 518
. : milestone, 497,
iast_FULL (649.929 µs) : 629, 671
. : milestone, 650,
iast_GLOBAL (515.155 µs) : 494, 536
. : milestone, 515,
iast_HARDCODED_SECRET_DISABLED (493.348 µs) : 472, 515
. : milestone, 493,
iast_INACTIVE (452.203 µs) : 431, 473
. : milestone, 452,
iast_TELEMETRY_OFF (482.587 µs) : 461, 504
. : milestone, 483,
tracing (451.357 µs) : 430, 473
. : milestone, 451,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section baseline
no_agent (1.351 ms) : 1331, 1371
. : milestone, 1351,
appsec (1.766 ms) : 1741, 1791
. : milestone, 1766,
appsec_no_iast (1.751 ms) : 1726, 1776
. : milestone, 1751,
iast (1.491 ms) : 1468, 1514
. : milestone, 1491,
profiling (1.495 ms) : 1473, 1518
. : milestone, 1495,
tracing (1.51 ms) : 1486, 1535
. : milestone, 1510,
section candidate
no_agent (1.351 ms) : 1331, 1372
. : milestone, 1351,
appsec (1.748 ms) : 1722, 1773
. : milestone, 1748,
appsec_no_iast (1.759 ms) : 1735, 1783
. : milestone, 1759,
iast (1.495 ms) : 1471, 1518
. : milestone, 1495,
profiling (1.523 ms) : 1499, 1548
. : milestone, 1523,
tracing (1.492 ms) : 1467, 1517
. : milestone, 1492,
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.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section baseline
no_agent (1.47 ms) : 1458, 1481
. : milestone, 1470,
appsec (2.347 ms) : 2306, 2388
. : milestone, 2347,
iast (2.083 ms) : 2031, 2136
. : milestone, 2083,
iast_GLOBAL (2.125 ms) : 2072, 2177
. : milestone, 2125,
profiling (1.946 ms) : 1904, 1987
. : milestone, 1946,
tracing (1.941 ms) : 1901, 1982
. : milestone, 1941,
section candidate
no_agent (1.472 ms) : 1461, 1484
. : milestone, 1472,
appsec (2.344 ms) : 2303, 2386
. : milestone, 2344,
iast (2.092 ms) : 2039, 2144
. : milestone, 2092,
iast_GLOBAL (2.135 ms) : 2082, 2188
. : milestone, 2135,
profiling (1.955 ms) : 1911, 1998
. : milestone, 1955,
tracing (1.933 ms) : 1893, 1973
. : milestone, 1933,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~c62acdc4f7, baseline=1.43.0-SNAPSHOT~9078a8c473
dateFormat X
axisFormat %s
section baseline
no_agent (15.61 s) : 15610000, 15610000
. : milestone, 15610000,
appsec (15.062 s) : 15062000, 15062000
. : milestone, 15062000,
iast (18.753 s) : 18753000, 18753000
. : milestone, 18753000,
iast_GLOBAL (17.965 s) : 17965000, 17965000
. : milestone, 17965000,
profiling (14.961 s) : 14961000, 14961000
. : milestone, 14961000,
tracing (14.95 s) : 14950000, 14950000
. : milestone, 14950000,
section candidate
no_agent (15.43 s) : 15430000, 15430000
. : milestone, 15430000,
appsec (15.109 s) : 15109000, 15109000
. : milestone, 15109000,
iast (18.48 s) : 18480000, 18480000
. : milestone, 18480000,
iast_GLOBAL (18.157 s) : 18157000, 18157000
. : milestone, 18157000,
profiling (14.775 s) : 14775000, 14775000
. : milestone, 14775000,
tracing (14.762 s) : 14762000, 14762000
. : milestone, 14762000,
|
Kafka / consumer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
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.
This is not enough because 0.11+ also needs to be checked as uniquely applicable.
Also, instrumenting kafka 3.7 with the codebase currently in master fails because
java.lang.IllegalStateException: Cannot locate field named metadata for class org.apache.kafka.clients.consumer.KafkaConsumer
at net.bytebuddy.asm.Advice$OffsetMapping$ForField$Unresolved.resolve(Advice.java:2556)
at net.bytebuddy.asm.Advice$OffsetMapping$ForField.resolve(Advice.java:2481)
at net.bytebuddy.asm.Advice$Dispatcher$Inlining$Resolved$ForMethodExit.doApply(Advice.java:9876)
I don't think this PR prevents it.
Muzzle (or narrower matchers) should be used on 0.11+ to prevent this kind of issues. Additionally this shows a potential range of versions we still not support properly
#8006 seems have been opened for the same goal. Can this be closed? |
Pull request was closed
What Does This Do
Adds muzzleChecks to prevent double instrumenting of kafka.
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]