-
Notifications
You must be signed in to change notification settings - Fork 298
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
Remove AttachableWrapper aspect from scopes #8647
Merged
Merged
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
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 68 metrics, 3 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.48.0-SNAPSHOT~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.054 s) : 0, 1054476
Total [baseline] (10.515 s) : 0, 10515188
Agent [candidate] (1.053 s) : 0, 1053489
Total [candidate] (10.482 s) : 0, 10482272
section appsec
Agent [baseline] (1.196 s) : 0, 1195513
Total [baseline] (10.75 s) : 0, 10749726
Agent [candidate] (1.197 s) : 0, 1196612
Total [candidate] (10.779 s) : 0, 10779379
section iast
Agent [baseline] (1.18 s) : 0, 1179650
Total [baseline] (11.046 s) : 0, 11045576
Agent [candidate] (1.19 s) : 0, 1189503
Total [candidate] (11.032 s) : 0, 11031893
section profiling
Agent [baseline] (1.284 s) : 0, 1284186
Total [baseline] (10.891 s) : 0, 10890749
Agent [candidate] (1.278 s) : 0, 1278231
Total [candidate] (10.855 s) : 0, 10855213
gantt
title petclinic - break down per module: candidate=1.48.0-SNAPSHOT~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (718.073 ms) : 0, 718073
BytebuddyAgent [candidate] (717.6 ms) : 0, 717600
GlobalTracer [baseline] (239.852 ms) : 0, 239852
GlobalTracer [candidate] (239.159 ms) : 0, 239159
AppSec [baseline] (55.143 ms) : 0, 55143
AppSec [candidate] (54.537 ms) : 0, 54537
Debugger [baseline] (5.208 ms) : 0, 5208
Debugger [candidate] (4.434 ms) : 0, 4434
Remote Config [baseline] (690.333 µs) : 0, 690
Remote Config [candidate] (690.753 µs) : 0, 691
Telemetry [baseline] (15.048 ms) : 0, 15048
Telemetry [candidate] (16.622 ms) : 0, 16622
section appsec
BytebuddyAgent [baseline] (738.48 ms) : 0, 738480
BytebuddyAgent [candidate] (738.693 ms) : 0, 738693
GlobalTracer [baseline] (236.468 ms) : 0, 236468
GlobalTracer [candidate] (237.056 ms) : 0, 237056
AppSec [baseline] (176.172 ms) : 0, 176172
AppSec [candidate] (176.364 ms) : 0, 176364
Debugger [baseline] (4.291 ms) : 0, 4291
Debugger [candidate] (4.305 ms) : 0, 4305
Remote Config [baseline] (650.59 µs) : 0, 651
Remote Config [candidate] (644.483 µs) : 0, 644
Telemetry [baseline] (8.209 ms) : 0, 8209
Telemetry [candidate] (8.232 ms) : 0, 8232
IAST [baseline] (21.646 ms) : 0, 21646
IAST [candidate] (21.646 ms) : 0, 21646
section iast
BytebuddyAgent [baseline] (837.017 ms) : 0, 837017
BytebuddyAgent [candidate] (844.951 ms) : 0, 844951
GlobalTracer [baseline] (229.897 ms) : 0, 229897
GlobalTracer [candidate] (231.383 ms) : 0, 231383
AppSec [baseline] (56.246 ms) : 0, 56246
AppSec [candidate] (56.151 ms) : 0, 56151
Debugger [baseline] (4.08 ms) : 0, 4080
Debugger [candidate] (4.142 ms) : 0, 4142
Remote Config [baseline] (598.516 µs) : 0, 599
Remote Config [candidate] (610.817 µs) : 0, 611
Telemetry [baseline] (8.75 ms) : 0, 8750
Telemetry [candidate] (8.797 ms) : 0, 8797
IAST [baseline] (22.629 ms) : 0, 22629
IAST [candidate] (22.927 ms) : 0, 22927
section profiling
ProfilingAgent [baseline] (103.16 ms) : 0, 103160
ProfilingAgent [candidate] (103.132 ms) : 0, 103132
BytebuddyAgent [baseline] (716.133 ms) : 0, 716133
BytebuddyAgent [candidate] (711.559 ms) : 0, 711559
GlobalTracer [baseline] (349.961 ms) : 0, 349961
GlobalTracer [candidate] (350.498 ms) : 0, 350498
AppSec [baseline] (54.736 ms) : 0, 54736
AppSec [candidate] (53.434 ms) : 0, 53434
Debugger [baseline] (4.346 ms) : 0, 4346
Debugger [candidate] (4.294 ms) : 0, 4294
Remote Config [baseline] (699.814 µs) : 0, 700
Remote Config [candidate] (697.708 µs) : 0, 698
Telemetry [baseline] (9.127 ms) : 0, 9127
Telemetry [candidate] (9.01 ms) : 0, 9010
Profiling [baseline] (103.185 ms) : 0, 103185
Profiling [candidate] (103.157 ms) : 0, 103157
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.48.0-SNAPSHOT~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.06 s) : 0, 1060038
Total [baseline] (8.696 s) : 0, 8695808
Agent [candidate] (1.054 s) : 0, 1053617
Total [candidate] (8.697 s) : 0, 8697060
section iast
Agent [baseline] (1.181 s) : 0, 1181272
Total [baseline] (9.29 s) : 0, 9289820
Agent [candidate] (1.18 s) : 0, 1179595
Total [candidate] (9.243 s) : 0, 9242623
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.18 s) : 0, 1180431
Total [baseline] (9.194 s) : 0, 9194063
Agent [candidate] (1.181 s) : 0, 1181158
Total [candidate] (9.235 s) : 0, 9235002
section iast_TELEMETRY_OFF
Agent [baseline] (1.176 s) : 0, 1176132
Total [baseline] (9.311 s) : 0, 9311283
Agent [candidate] (1.189 s) : 0, 1188670
Total [candidate] (9.262 s) : 0, 9261524
gantt
title insecure-bank - break down per module: candidate=1.48.0-SNAPSHOT~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (725.22 ms) : 0, 725220
BytebuddyAgent [candidate] (720.066 ms) : 0, 720066
GlobalTracer [baseline] (241.488 ms) : 0, 241488
GlobalTracer [candidate] (239.861 ms) : 0, 239861
AppSec [baseline] (54.649 ms) : 0, 54649
AppSec [candidate] (55.145 ms) : 0, 55145
Debugger [baseline] (4.456 ms) : 0, 4456
Debugger [candidate] (4.462 ms) : 0, 4462
Remote Config [baseline] (703.909 µs) : 0, 704
Remote Config [candidate] (690.028 µs) : 0, 690
Telemetry [baseline] (12.877 ms) : 0, 12877
Telemetry [candidate] (12.796 ms) : 0, 12796
section iast
BytebuddyAgent [baseline] (838.398 ms) : 0, 838398
BytebuddyAgent [candidate] (837.126 ms) : 0, 837126
GlobalTracer [baseline] (229.84 ms) : 0, 229840
GlobalTracer [candidate] (229.684 ms) : 0, 229684
IAST [baseline] (22.729 ms) : 0, 22729
IAST [candidate] (22.685 ms) : 0, 22685
AppSec [baseline] (56.241 ms) : 0, 56241
AppSec [candidate] (55.907 ms) : 0, 55907
Debugger [baseline] (4.183 ms) : 0, 4183
Debugger [candidate] (4.202 ms) : 0, 4202
Remote Config [baseline] (611.615 µs) : 0, 612
Remote Config [candidate] (629.703 µs) : 0, 630
Telemetry [baseline] (8.79 ms) : 0, 8790
Telemetry [candidate] (8.884 ms) : 0, 8884
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (837.635 ms) : 0, 837635
BytebuddyAgent [candidate] (838.444 ms) : 0, 838444
GlobalTracer [baseline] (229.629 ms) : 0, 229629
GlobalTracer [candidate] (230.048 ms) : 0, 230048
IAST [baseline] (22.876 ms) : 0, 22876
IAST [candidate] (22.748 ms) : 0, 22748
AppSec [baseline] (56.284 ms) : 0, 56284
AppSec [candidate] (55.881 ms) : 0, 55881
Debugger [baseline] (4.179 ms) : 0, 4179
Debugger [candidate] (4.13 ms) : 0, 4130
Remote Config [baseline] (623.189 µs) : 0, 623
Remote Config [candidate] (609.876 µs) : 0, 610
Telemetry [baseline] (8.775 ms) : 0, 8775
Telemetry [candidate] (8.801 ms) : 0, 8801
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (833.766 ms) : 0, 833766
BytebuddyAgent [candidate] (845.75 ms) : 0, 845750
GlobalTracer [baseline] (230.046 ms) : 0, 230046
GlobalTracer [candidate] (230.255 ms) : 0, 230255
IAST [baseline] (22.324 ms) : 0, 22324
IAST [candidate] (22.611 ms) : 0, 22611
AppSec [baseline] (55.973 ms) : 0, 55973
AppSec [candidate] (56.024 ms) : 0, 56024
Debugger [baseline] (4.157 ms) : 0, 4157
Debugger [candidate] (4.127 ms) : 0, 4127
Remote Config [baseline] (613.083 µs) : 0, 613
Remote Config [candidate] (614.555 µs) : 0, 615
Telemetry [baseline] (8.748 ms) : 0, 8748
Telemetry [candidate] (8.68 ms) : 0, 8680
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 14 metrics, 16 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section baseline
no_agent (1.364 ms) : 1345, 1384
. : milestone, 1364,
appsec (1.744 ms) : 1720, 1768
. : milestone, 1744,
appsec_no_iast (1.723 ms) : 1698, 1748
. : milestone, 1723,
code_origins (1.71 ms) : 1684, 1736
. : milestone, 1710,
iast (1.523 ms) : 1498, 1548
. : milestone, 1523,
profiling (1.5 ms) : 1476, 1523
. : milestone, 1500,
tracing (1.496 ms) : 1472, 1521
. : milestone, 1496,
section candidate
no_agent (1.373 ms) : 1353, 1393
. : milestone, 1373,
appsec (1.72 ms) : 1697, 1744
. : milestone, 1720,
appsec_no_iast (1.748 ms) : 1723, 1772
. : milestone, 1748,
code_origins (1.684 ms) : 1658, 1710
. : milestone, 1684,
iast (1.508 ms) : 1484, 1533
. : milestone, 1508,
profiling (1.509 ms) : 1485, 1532
. : milestone, 1509,
tracing (1.511 ms) : 1487, 1536
. : milestone, 1511,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section baseline
no_agent (390.879 µs) : 371, 411
. : milestone, 391,
iast (513.547 µs) : 492, 535
. : milestone, 514,
iast_FULL (731.036 µs) : 709, 753
. : milestone, 731,
iast_GLOBAL (563.234 µs) : 542, 585
. : milestone, 563,
iast_HARDCODED_SECRET_DISABLED (515.787 µs) : 494, 538
. : milestone, 516,
iast_INACTIVE (466.68 µs) : 445, 488
. : milestone, 467,
iast_TELEMETRY_OFF (510.046 µs) : 488, 532
. : milestone, 510,
tracing (466.706 µs) : 446, 488
. : milestone, 467,
section candidate
no_agent (386.88 µs) : 365, 409
. : milestone, 387,
iast (518.541 µs) : 496, 541
. : milestone, 519,
iast_FULL (739.693 µs) : 718, 761
. : milestone, 740,
iast_GLOBAL (564.492 µs) : 542, 587
. : milestone, 564,
iast_HARDCODED_SECRET_DISABLED (516.008 µs) : 494, 538
. : milestone, 516,
iast_INACTIVE (468.232 µs) : 447, 489
. : milestone, 468,
iast_TELEMETRY_OFF (508.498 µs) : 487, 530
. : milestone, 508,
tracing (469.314 µs) : 448, 491
. : milestone, 469,
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~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section baseline
no_agent (1.47 ms) : 1459, 1481
. : milestone, 1470,
appsec (2.366 ms) : 2320, 2413
. : milestone, 2366,
iast (2.148 ms) : 2089, 2207
. : milestone, 2148,
iast_GLOBAL (2.191 ms) : 2131, 2250
. : milestone, 2191,
profiling (2.025 ms) : 1977, 2074
. : milestone, 2025,
tracing (1.982 ms) : 1936, 2028
. : milestone, 1982,
section candidate
no_agent (1.469 ms) : 1458, 1481
. : milestone, 1469,
appsec (2.362 ms) : 2315, 2408
. : milestone, 2362,
iast (2.152 ms) : 2093, 2211
. : milestone, 2152,
iast_GLOBAL (2.196 ms) : 2137, 2255
. : milestone, 2196,
profiling (2.0 ms) : 1953, 2048
. : milestone, 2000,
tracing (1.972 ms) : 1927, 2017
. : milestone, 1972,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~017f6c5c04, baseline=1.48.0-SNAPSHOT~d8de1044d6
dateFormat X
axisFormat %s
section baseline
no_agent (15.334 s) : 15334000, 15334000
. : milestone, 15334000,
appsec (14.618 s) : 14618000, 14618000
. : milestone, 14618000,
iast (19.001 s) : 19001000, 19001000
. : milestone, 19001000,
iast_GLOBAL (18.077 s) : 18077000, 18077000
. : milestone, 18077000,
profiling (14.995 s) : 14995000, 14995000
. : milestone, 14995000,
tracing (15.047 s) : 15047000, 15047000
. : milestone, 15047000,
section candidate
no_agent (14.881 s) : 14881000, 14881000
. : milestone, 14881000,
appsec (14.933 s) : 14933000, 14933000
. : milestone, 14933000,
iast (18.487 s) : 18487000, 18487000
. : milestone, 18487000,
iast_GLOBAL (18.244 s) : 18244000, 18244000
. : milestone, 18244000,
profiling (15.235 s) : 15235000, 15235000
. : milestone, 15235000,
tracing (15.072 s) : 15072000, 15072000
. : milestone, 15072000,
|
c4cb2e9
to
760506a
Compare
ccb5be3
to
80bbe40
Compare
In the majority of cases the scope wrapper will only be accessed once when activating a span or context. The other cases are deprecated calls to check the active scope, where the returned scope wrapper is short-lived and cheap to recreate.
80bbe40
to
017f6c5
Compare
amarziali
approved these changes
Apr 2, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp: core
Tracer core
tag: no release notes
Changes to exclude from release notes
type: refactoring
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.
Motivation
With the switch to use the internal Context API to manage OpenTelemetry contexts, we no longer need to attach state to scopes. In the majority of cases the scope wrapper is only accessed once when activating a span or context. The other cases are deprecated calls to check the active scope, where the returned scope wrapper is short-lived and cheap to recreate.
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-960