-
Notifications
You must be signed in to change notification settings - Fork 303
zio: fix context propagation #6442
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
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 47 metrics, 7 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.28.0-SNAPSHOT~dc56eac7c7, baseline=1.28.0-SNAPSHOT~260cceba39
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.057 s) : 0, 1056763
Total [baseline] (9.381 s) : 0, 9380787
Agent [candidate] (1.058 s) : 0, 1058189
Total [candidate] (9.366 s) : 0, 9366075
section appsec
Agent [baseline] (1.146 s) : 0, 1146095
Total [baseline] (9.431 s) : 0, 9430915
Agent [candidate] (1.148 s) : 0, 1148151
Total [candidate] (9.471 s) : 0, 9471120
section iast
Agent [baseline] (1.169 s) : 0, 1169389
Total [baseline] (9.615 s) : 0, 9615488
Agent [candidate] (1.179 s) : 0, 1179387
Total [candidate] (9.632 s) : 0, 9632196
section profiling
Agent [baseline] (1.28 s) : 0, 1279556
Total [baseline] (9.661 s) : 0, 9660796
Agent [candidate] (1.283 s) : 0, 1282575
Total [candidate] (9.704 s) : 0, 9704354
gantt
title petclinic - break down per module: candidate=1.28.0-SNAPSHOT~dc56eac7c7, baseline=1.28.0-SNAPSHOT~260cceba39
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (654.244 ms) : 0, 654244
BytebuddyAgent [candidate] (655.032 ms) : 0, 655032
GlobalTracer [baseline] (309.248 ms) : 0, 309248
GlobalTracer [candidate] (309.767 ms) : 0, 309767
AppSec [baseline] (50.89 ms) : 0, 50890
AppSec [candidate] (50.881 ms) : 0, 50881
Remote Config [baseline] (679.46 µs) : 0, 679
Remote Config [candidate] (680.385 µs) : 0, 680
Telemetry [baseline] (7.254 ms) : 0, 7254
Telemetry [candidate] (7.287 ms) : 0, 7287
section appsec
BytebuddyAgent [baseline] (648.969 ms) : 0, 648969
BytebuddyAgent [candidate] (650.863 ms) : 0, 650863
GlobalTracer [baseline] (307.31 ms) : 0, 307310
GlobalTracer [candidate] (306.854 ms) : 0, 306854
AppSec [baseline] (148.084 ms) : 0, 148084
AppSec [candidate] (148.637 ms) : 0, 148637
Remote Config [baseline] (644.195 µs) : 0, 644
Remote Config [candidate] (643.933 µs) : 0, 644
Telemetry [baseline] (6.879 ms) : 0, 6879
Telemetry [candidate] (6.882 ms) : 0, 6882
section iast
BytebuddyAgent [baseline] (770.589 ms) : 0, 770589
BytebuddyAgent [candidate] (777.826 ms) : 0, 777826
GlobalTracer [baseline] (285.63 ms) : 0, 285630
GlobalTracer [candidate] (287.735 ms) : 0, 287735
AppSec [baseline] (52.478 ms) : 0, 52478
AppSec [candidate] (53.708 ms) : 0, 53708
Remote Config [baseline] (571.424 µs) : 0, 571
Remote Config [candidate] (569.265 µs) : 0, 569
Telemetry [baseline] (7.282 ms) : 0, 7282
Telemetry [candidate] (6.395 ms) : 0, 6395
IAST [baseline] (18.56 ms) : 0, 18560
IAST [candidate] (18.519 ms) : 0, 18519
section profiling
BytebuddyAgent [baseline] (664.229 ms) : 0, 664229
BytebuddyAgent [candidate] (666.601 ms) : 0, 666601
GlobalTracer [baseline] (376.877 ms) : 0, 376877
GlobalTracer [candidate] (377.712 ms) : 0, 377712
AppSec [baseline] (51.669 ms) : 0, 51669
AppSec [candidate] (51.349 ms) : 0, 51349
Remote Config [baseline] (1.006 ms) : 0, 1006
Remote Config [candidate] (1.01 ms) : 0, 1010
Telemetry [baseline] (7.342 ms) : 0, 7342
Telemetry [candidate] (7.245 ms) : 0, 7245
ProfilingAgent [baseline] (123.823 ms) : 0, 123823
ProfilingAgent [candidate] (123.917 ms) : 0, 123917
Profiling [baseline] (123.848 ms) : 0, 123848
Profiling [candidate] (123.942 ms) : 0, 123942
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.28.0-SNAPSHOT~dc56eac7c7, baseline=1.28.0-SNAPSHOT~260cceba39
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.052 s) : 0, 1051738
Total [baseline] (8.755 s) : 0, 8754606
Agent [candidate] (1.058 s) : 0, 1058337
Total [candidate] (8.746 s) : 0, 8745543
section iast
Agent [baseline] (1.171 s) : 0, 1170808
Total [baseline] (9.258 s) : 0, 9257782
Agent [candidate] (1.178 s) : 0, 1178053
Total [candidate] (9.286 s) : 0, 9286367
section iast_TELEMETRY_OFF
Agent [baseline] (1.171 s) : 0, 1171338
Total [baseline] (9.29 s) : 0, 9290301
Agent [candidate] (1.165 s) : 0, 1164559
Total [candidate] (9.277 s) : 0, 9276758
gantt
title insecure-bank - break down per module: candidate=1.28.0-SNAPSHOT~dc56eac7c7, baseline=1.28.0-SNAPSHOT~260cceba39
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (650.01 ms) : 0, 650010
BytebuddyAgent [candidate] (655.359 ms) : 0, 655359
GlobalTracer [baseline] (308.629 ms) : 0, 308629
GlobalTracer [candidate] (309.405 ms) : 0, 309405
AppSec [baseline] (50.981 ms) : 0, 50981
AppSec [candidate] (51.044 ms) : 0, 51044
Remote Config [baseline] (690.925 µs) : 0, 691
Remote Config [candidate] (681.519 µs) : 0, 682
Telemetry [baseline] (7.226 ms) : 0, 7226
Telemetry [candidate] (7.306 ms) : 0, 7306
section iast
BytebuddyAgent [baseline] (770.802 ms) : 0, 770802
BytebuddyAgent [candidate] (777.715 ms) : 0, 777715
GlobalTracer [baseline] (286.023 ms) : 0, 286023
GlobalTracer [candidate] (286.358 ms) : 0, 286358
AppSec [baseline] (51.061 ms) : 0, 51061
AppSec [candidate] (52.265 ms) : 0, 52265
Remote Config [baseline] (576.026 µs) : 0, 576
Remote Config [candidate] (561.994 µs) : 0, 562
Telemetry [baseline] (8.105 ms) : 0, 8105
Telemetry [candidate] (6.48 ms) : 0, 6480
IAST [baseline] (19.968 ms) : 0, 19968
IAST [candidate] (19.922 ms) : 0, 19922
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (769.188 ms) : 0, 769188
BytebuddyAgent [candidate] (764.473 ms) : 0, 764473
GlobalTracer [baseline] (288.224 ms) : 0, 288224
GlobalTracer [candidate] (286.708 ms) : 0, 286708
AppSec [baseline] (49.509 ms) : 0, 49509
AppSec [candidate] (49.448 ms) : 0, 49448
Remote Config [baseline] (574.845 µs) : 0, 575
Remote Config [candidate] (567.838 µs) : 0, 568
Telemetry [baseline] (6.471 ms) : 0, 6471
Telemetry [candidate] (6.454 ms) : 0, 6454
IAST [baseline] (22.799 ms) : 0, 22799
IAST [candidate] (22.587 ms) : 0, 22587
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 9 metrics, 13 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.28.0-SNAPSHOT~dc56eac7c7, baseline=1.28.0-SNAPSHOT~260cceba39
dateFormat X
axisFormat %s
section baseline
no_agent (1.367 ms) : 1347, 1386
. : milestone, 1367,
appsec (1.794 ms) : 1769, 1820
. : milestone, 1794,
iast (1.516 ms) : 1492, 1540
. : milestone, 1516,
profiling (1.537 ms) : 1511, 1562
. : milestone, 1537,
tracing (1.505 ms) : 1480, 1530
. : milestone, 1505,
section candidate
no_agent (1.37 ms) : 1351, 1389
. : milestone, 1370,
appsec (1.785 ms) : 1759, 1810
. : milestone, 1785,
iast (1.545 ms) : 1521, 1569
. : milestone, 1545,
profiling (1.589 ms) : 1562, 1616
. : milestone, 1589,
tracing (1.497 ms) : 1471, 1523
. : milestone, 1497,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.28.0-SNAPSHOT~dc56eac7c7, baseline=1.28.0-SNAPSHOT~260cceba39
dateFormat X
axisFormat %s
section baseline
no_agent (371.336 µs) : 351, 392
. : milestone, 371,
iast (490.052 µs) : 469, 511
. : milestone, 490,
iast_FULL (542.966 µs) : 523, 563
. : milestone, 543,
iast_INACTIVE (451.273 µs) : 431, 471
. : milestone, 451,
iast_TELEMETRY_OFF (482.365 µs) : 462, 503
. : milestone, 482,
tracing (443.537 µs) : 423, 464
. : milestone, 444,
section candidate
no_agent (373.029 µs) : 352, 394
. : milestone, 373,
iast (485.115 µs) : 465, 506
. : milestone, 485,
iast_FULL (543.05 µs) : 523, 564
. : milestone, 543,
iast_INACTIVE (457.553 µs) : 436, 479
. : milestone, 458,
iast_TELEMETRY_OFF (474.052 µs) : 453, 495
. : milestone, 474,
tracing (444.898 µs) : 424, 466
. : milestone, 445,
|
34611dd
to
668432c
Compare
668432c
to
b102938
Compare
7d0ad79
to
c065e43
Compare
c065e43
to
dc56eac
Compare
I'm fine with the change to exclude I'm less confident about the (existing) suspend and resume logic. Can suspend...resume be called multiple times during the lifetime of a However if a new |
@mcculls Stuart as far I understood this is done on purpose. The continuation is captured on creation and restored on the new state on the first resume. The others resume / supend states seems to be handled through scope states. I tried also to create a new fibercontext on resume but test then fail |
What Does This Do
Provides several fixes to the zio instrumentation hence resolving as well the flakiness of tests.
zio.internal.FiberRuntime
from context propagation since this is done via the instrumentation itself (supervisor)Motivation
Additional Notes
Jira ticket: [PROJ-IDENT]