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
Filter out bridge methods when instrumenting methods #6785
Merged
evanchooly
merged 5 commits into
master
from
DEBUG-2177-Remove-bridge-method-instrumentation
Mar 13, 2024
Merged
Filter out bridge methods when instrumenting methods #6785
evanchooly
merged 5 commits into
master
from
DEBUG-2177-Remove-bridge-method-instrumentation
Mar 13, 2024
Conversation
This file contains 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
jpbempel
approved these changes
Mar 7, 2024
evanchooly
force-pushed
the
DEBUG-2177-Remove-bridge-method-instrumentation
branch
from
March 11, 2024 18:23
7bb9df3
to
f8623cd
Compare
This PR needs the circle CI run to complete but it's blocked because of a missing config file. Where do I go from here? |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 50 metrics, 13 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.32.0-SNAPSHOT~2e88832adb, baseline=1.32.0-SNAPSHOT~a786410129
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.08 s) : 0, 1079654
Total [baseline] (9.232 s) : 0, 9231889
Agent [candidate] (1.083 s) : 0, 1083042
Total [candidate] (9.186 s) : 0, 9185728
section appsec
Agent [baseline] (1.21 s) : 0, 1210309
Total [baseline] (9.362 s) : 0, 9361867
Agent [candidate] (1.207 s) : 0, 1207192
Total [candidate] (9.368 s) : 0, 9368023
section iast
Agent [baseline] (1.219 s) : 0, 1219063
Total [baseline] (9.405 s) : 0, 9405208
Agent [candidate] (1.208 s) : 0, 1207914
Total [candidate] (9.336 s) : 0, 9336441
section profiling
Agent [baseline] (1.28 s) : 0, 1280064
Total [baseline] (9.54 s) : 0, 9539671
Agent [candidate] (1.282 s) : 0, 1282294
Total [candidate] (9.426 s) : 0, 9425616
gantt
title petclinic - break down per module: candidate=1.32.0-SNAPSHOT~2e88832adb, baseline=1.32.0-SNAPSHOT~a786410129
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (695.718 ms) : 0, 695718
BytebuddyAgent [candidate] (697.246 ms) : 0, 697246
GlobalTracer [baseline] (292.053 ms) : 0, 292053
GlobalTracer [candidate] (293.478 ms) : 0, 293478
AppSec [baseline] (49.197 ms) : 0, 49197
AppSec [candidate] (49.418 ms) : 0, 49418
Remote Config [baseline] (731.481 µs) : 0, 731
Remote Config [candidate] (737.082 µs) : 0, 737
Telemetry [baseline] (7.722 ms) : 0, 7722
Telemetry [candidate] (7.766 ms) : 0, 7766
section appsec
BytebuddyAgent [baseline] (701.959 ms) : 0, 701959
BytebuddyAgent [candidate] (701.163 ms) : 0, 701163
GlobalTracer [baseline] (294.541 ms) : 0, 294541
GlobalTracer [candidate] (292.671 ms) : 0, 292671
AppSec [baseline] (153.781 ms) : 0, 153781
AppSec [candidate] (153.446 ms) : 0, 153446
Remote Config [baseline] (607.596 µs) : 0, 608
Remote Config [candidate] (606.46 µs) : 0, 606
Telemetry [baseline] (6.931 ms) : 0, 6931
Telemetry [candidate] (6.902 ms) : 0, 6902
IAST [baseline] (17.838 ms) : 0, 17838
IAST [candidate] (17.87 ms) : 0, 17870
section iast
BytebuddyAgent [baseline] (811.25 ms) : 0, 811250
BytebuddyAgent [candidate] (803.053 ms) : 0, 803053
GlobalTracer [baseline] (291.726 ms) : 0, 291726
GlobalTracer [candidate] (289.994 ms) : 0, 289994
AppSec [baseline] (48.907 ms) : 0, 48907
AppSec [candidate] (49.851 ms) : 0, 49851
Remote Config [baseline] (598.949 µs) : 0, 599
Remote Config [candidate] (607.921 µs) : 0, 608
Telemetry [baseline] (6.537 ms) : 0, 6537
Telemetry [candidate] (7.396 ms) : 0, 7396
IAST [baseline] (25.226 ms) : 0, 25226
IAST [candidate] (22.619 ms) : 0, 22619
section profiling
BytebuddyAgent [baseline] (693.016 ms) : 0, 693016
BytebuddyAgent [candidate] (694.256 ms) : 0, 694256
GlobalTracer [baseline] (377.533 ms) : 0, 377533
GlobalTracer [candidate] (378.839 ms) : 0, 378839
AppSec [baseline] (49.938 ms) : 0, 49938
AppSec [candidate] (49.919 ms) : 0, 49919
Remote Config [baseline] (733.631 µs) : 0, 734
Remote Config [candidate] (813.469 µs) : 0, 813
Telemetry [baseline] (7.499 ms) : 0, 7499
Telemetry [candidate] (7.389 ms) : 0, 7389
ProfilingAgent [baseline] (94.899 ms) : 0, 94899
ProfilingAgent [candidate] (94.463 ms) : 0, 94463
Profiling [baseline] (94.922 ms) : 0, 94922
Profiling [candidate] (94.487 ms) : 0, 94487
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.32.0-SNAPSHOT~2e88832adb, baseline=1.32.0-SNAPSHOT~a786410129
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.088 s) : 0, 1087908
Total [baseline] (8.622 s) : 0, 8621542
Agent [candidate] (1.081 s) : 0, 1080967
Total [candidate] (8.575 s) : 0, 8575232
section iast
Agent [baseline] (1.204 s) : 0, 1204056
Total [baseline] (9.049 s) : 0, 9049038
Agent [candidate] (1.215 s) : 0, 1215356
Total [candidate] (9.147 s) : 0, 9146573
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.21 s) : 0, 1210047
Total [baseline] (9.074 s) : 0, 9074044
Agent [candidate] (1.207 s) : 0, 1206560
Total [candidate] (9.031 s) : 0, 9030686
section iast_TELEMETRY_OFF
Agent [baseline] (1.198 s) : 0, 1197823
Total [baseline] (9.049 s) : 0, 9048516
Agent [candidate] (1.199 s) : 0, 1199014
Total [candidate] (9.066 s) : 0, 9065613
gantt
title insecure-bank - break down per module: candidate=1.32.0-SNAPSHOT~2e88832adb, baseline=1.32.0-SNAPSHOT~a786410129
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (701.673 ms) : 0, 701673
BytebuddyAgent [candidate] (696.86 ms) : 0, 696860
GlobalTracer [baseline] (293.699 ms) : 0, 293699
GlobalTracer [candidate] (292.159 ms) : 0, 292159
AppSec [baseline] (49.424 ms) : 0, 49424
AppSec [candidate] (49.193 ms) : 0, 49193
Remote Config [baseline] (739.378 µs) : 0, 739
Remote Config [candidate] (729.248 µs) : 0, 729
Telemetry [baseline] (7.757 ms) : 0, 7757
Telemetry [candidate] (7.671 ms) : 0, 7671
section iast
BytebuddyAgent [baseline] (800.041 ms) : 0, 800041
BytebuddyAgent [candidate] (807.286 ms) : 0, 807286
GlobalTracer [baseline] (288.44 ms) : 0, 288440
GlobalTracer [candidate] (291.516 ms) : 0, 291516
AppSec [baseline] (48.487 ms) : 0, 48487
AppSec [candidate] (50.322 ms) : 0, 50322
IAST [baseline] (22.167 ms) : 0, 22167
IAST [candidate] (23.407 ms) : 0, 23407
Remote Config [baseline] (612.325 µs) : 0, 612
Remote Config [candidate] (633.963 µs) : 0, 634
Telemetry [baseline] (9.857 ms) : 0, 9857
Telemetry [candidate] (7.469 ms) : 0, 7469
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (805.105 ms) : 0, 805105
BytebuddyAgent [candidate] (801.307 ms) : 0, 801307
GlobalTracer [baseline] (289.03 ms) : 0, 289030
GlobalTracer [candidate] (289.672 ms) : 0, 289672
AppSec [baseline] (50.932 ms) : 0, 50932
AppSec [candidate] (50.624 ms) : 0, 50624
IAST [baseline] (23.078 ms) : 0, 23078
IAST [candidate] (23.131 ms) : 0, 23131
Remote Config [baseline] (625.823 µs) : 0, 626
Remote Config [candidate] (622.081 µs) : 0, 622
Telemetry [baseline] (6.661 ms) : 0, 6661
Telemetry [candidate] (6.673 ms) : 0, 6673
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (792.932 ms) : 0, 792932
BytebuddyAgent [candidate] (793.465 ms) : 0, 793465
GlobalTracer [baseline] (289.355 ms) : 0, 289355
GlobalTracer [candidate] (290.018 ms) : 0, 290018
AppSec [baseline] (47.912 ms) : 0, 47912
AppSec [candidate] (51.081 ms) : 0, 51081
IAST [baseline] (26.219 ms) : 0, 26219
IAST [candidate] (22.411 ms) : 0, 22411
Remote Config [baseline] (577.473 µs) : 0, 577
Remote Config [candidate] (558.433 µs) : 0, 558
Telemetry [baseline] (6.453 ms) : 0, 6453
Telemetry [candidate] (7.138 ms) : 0, 7138
LoadRequest duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~2e88832adb, baseline=1.32.0-SNAPSHOT~a786410129
dateFormat X
axisFormat %s
section baseline
no_agent (1.378 ms) : 1359, 1398
. : milestone, 1378,
appsec (1.763 ms) : 1739, 1787
. : milestone, 1763,
iast (1.554 ms) : 1530, 1578
. : milestone, 1554,
profiling (1.567 ms) : 1542, 1591
. : milestone, 1567,
tracing (1.498 ms) : 1475, 1522
. : milestone, 1498,
section candidate
no_agent (1.363 ms) : 1344, 1382
. : milestone, 1363,
appsec (1.764 ms) : 1740, 1788
. : milestone, 1764,
iast (1.524 ms) : 1501, 1548
. : milestone, 1524,
profiling (1.525 ms) : 1501, 1550
. : milestone, 1525,
tracing (1.514 ms) : 1490, 1537
. : milestone, 1514,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~2e88832adb, baseline=1.32.0-SNAPSHOT~a786410129
dateFormat X
axisFormat %s
section baseline
no_agent (363.024 µs) : 343, 383
. : milestone, 363,
iast (477.543 µs) : 457, 498
. : milestone, 478,
iast_FULL (550.837 µs) : 530, 571
. : milestone, 551,
iast_GLOBAL (504.522 µs) : 482, 527
. : milestone, 505,
iast_HARDCODED_SECRET_DISABLED (475.181 µs) : 455, 495
. : milestone, 475,
iast_INACTIVE (456.245 µs) : 436, 477
. : milestone, 456,
iast_TELEMETRY_OFF (475.093 µs) : 455, 496
. : milestone, 475,
tracing (446.954 µs) : 426, 468
. : milestone, 447,
section candidate
no_agent (367.87 µs) : 347, 389
. : milestone, 368,
iast (475.204 µs) : 454, 496
. : milestone, 475,
iast_FULL (541.657 µs) : 521, 562
. : milestone, 542,
iast_GLOBAL (495.49 µs) : 475, 516
. : milestone, 495,
iast_HARDCODED_SECRET_DISABLED (475.486 µs) : 455, 496
. : milestone, 475,
iast_INACTIVE (446.857 µs) : 426, 468
. : milestone, 447,
iast_TELEMETRY_OFF (471.016 µs) : 450, 492
. : milestone, 471,
tracing (449.71 µs) : 429, 471
. : milestone, 450,
|
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
This PR will filter out bridge methods from instrumentation to reduce the number of duplicate events from a probe.
Motivation
Bridge methods are generated by javac to support generics and are invisible to end users. Currently they get instrumented along with user methods resulting in trace information that is duplicated by the actual method of interest.
Jira ticket: DEBUG-2177