-
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
Fix grpc server error mark #7505
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 49 metrics, 14 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.047 s) : 0, 1047285
Total [baseline] (8.484 s) : 0, 8484150
Agent [candidate] (1.051 s) : 0, 1051189
Total [candidate] (8.519 s) : 0, 8518953
section iast
Agent [baseline] (1.171 s) : 0, 1171041
Total [baseline] (8.942 s) : 0, 8942496
Agent [candidate] (1.173 s) : 0, 1172514
Total [candidate] (8.953 s) : 0, 8953488
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.174 s) : 0, 1174060
Total [baseline] (8.94 s) : 0, 8940238
Agent [candidate] (1.175 s) : 0, 1175447
Total [candidate] (8.997 s) : 0, 8997022
section iast_TELEMETRY_OFF
Agent [baseline] (1.169 s) : 0, 1168735
Total [baseline] (8.942 s) : 0, 8942456
Agent [candidate] (1.177 s) : 0, 1176624
Total [candidate] (8.968 s) : 0, 8967812
gantt
title insecure-bank - break down per module: candidate=1.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (668.239 ms) : 0, 668239
BytebuddyAgent [candidate] (669.799 ms) : 0, 669799
GlobalTracer [baseline] (306.37 ms) : 0, 306370
GlobalTracer [candidate] (307.818 ms) : 0, 307818
AppSec [baseline] (51.194 ms) : 0, 51194
AppSec [candidate] (51.864 ms) : 0, 51864
Remote Config [baseline] (669.871 µs) : 0, 670
Remote Config [candidate] (674.307 µs) : 0, 674
Telemetry [baseline] (7.392 ms) : 0, 7392
Telemetry [candidate] (7.561 ms) : 0, 7561
section iast
BytebuddyAgent [baseline] (778.296 ms) : 0, 778296
BytebuddyAgent [candidate] (778.168 ms) : 0, 778168
GlobalTracer [baseline] (295.767 ms) : 0, 295767
GlobalTracer [candidate] (296.115 ms) : 0, 296115
AppSec [baseline] (51.685 ms) : 0, 51685
AppSec [candidate] (50.527 ms) : 0, 50527
Remote Config [baseline] (594.331 µs) : 0, 594
Remote Config [candidate] (589.554 µs) : 0, 590
Telemetry [baseline] (8.708 ms) : 0, 8708
Telemetry [candidate] (9.535 ms) : 0, 9535
IAST [baseline] (22.557 ms) : 0, 22557
IAST [candidate] (24.121 ms) : 0, 24121
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (779.683 ms) : 0, 779683
BytebuddyAgent [candidate] (779.69 ms) : 0, 779690
GlobalTracer [baseline] (296.998 ms) : 0, 296998
GlobalTracer [candidate] (296.765 ms) : 0, 296765
AppSec [baseline] (48.983 ms) : 0, 48983
AppSec [candidate] (49.833 ms) : 0, 49833
Remote Config [baseline] (588.334 µs) : 0, 588
Remote Config [candidate] (613.585 µs) : 0, 614
Telemetry [baseline] (10.151 ms) : 0, 10151
Telemetry [candidate] (10.442 ms) : 0, 10442
IAST [baseline] (24.182 ms) : 0, 24182
IAST [candidate] (24.637 ms) : 0, 24637
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (775.87 ms) : 0, 775870
BytebuddyAgent [candidate] (780.827 ms) : 0, 780827
GlobalTracer [baseline] (295.923 ms) : 0, 295923
GlobalTracer [candidate] (298.642 ms) : 0, 298642
AppSec [baseline] (48.555 ms) : 0, 48555
AppSec [candidate] (49.818 ms) : 0, 49818
Remote Config [baseline] (605.037 µs) : 0, 605
Remote Config [candidate] (598.409 µs) : 0, 598
Telemetry [baseline] (10.963 ms) : 0, 10963
Telemetry [candidate] (8.759 ms) : 0, 8759
IAST [baseline] (23.379 ms) : 0, 23379
IAST [candidate] (24.396 ms) : 0, 24396
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.049 s) : 0, 1048651
Total [baseline] (10.407 s) : 0, 10406970
Agent [candidate] (1.056 s) : 0, 1055892
Total [candidate] (10.416 s) : 0, 10415560
section appsec
Agent [baseline] (1.176 s) : 0, 1175792
Total [baseline] (10.46 s) : 0, 10459674
Agent [candidate] (1.172 s) : 0, 1171522
Total [candidate] (10.46 s) : 0, 10460058
section iast
Agent [baseline] (1.171 s) : 0, 1171025
Total [baseline] (10.769 s) : 0, 10768913
Agent [candidate] (1.174 s) : 0, 1174472
Total [candidate] (10.888 s) : 0, 10887612
section profiling
Agent [baseline] (1.254 s) : 0, 1253898
Total [baseline] (10.65 s) : 0, 10650127
Agent [candidate] (1.247 s) : 0, 1246722
Total [candidate] (10.61 s) : 0, 10609725
gantt
title petclinic - break down per module: candidate=1.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (668.902 ms) : 0, 668902
BytebuddyAgent [candidate] (673.909 ms) : 0, 673909
GlobalTracer [baseline] (306.921 ms) : 0, 306921
GlobalTracer [candidate] (308.543 ms) : 0, 308543
AppSec [baseline] (51.27 ms) : 0, 51270
AppSec [candidate] (51.678 ms) : 0, 51678
Remote Config [baseline] (669.931 µs) : 0, 670
Remote Config [candidate] (682.886 µs) : 0, 683
Telemetry [baseline] (7.456 ms) : 0, 7456
Telemetry [candidate] (7.524 ms) : 0, 7524
section appsec
BytebuddyAgent [baseline] (681.232 ms) : 0, 681232
BytebuddyAgent [candidate] (680.021 ms) : 0, 680021
GlobalTracer [baseline] (302.341 ms) : 0, 302341
GlobalTracer [candidate] (301.28 ms) : 0, 301280
AppSec [baseline] (161.685 ms) : 0, 161685
AppSec [candidate] (159.799 ms) : 0, 159799
Remote Config [baseline] (643.452 µs) : 0, 643
Remote Config [candidate] (637.805 µs) : 0, 638
Telemetry [baseline] (7.133 ms) : 0, 7133
Telemetry [candidate] (7.141 ms) : 0, 7141
IAST [baseline] (18.468 ms) : 0, 18468
IAST [candidate] (18.295 ms) : 0, 18295
section iast
BytebuddyAgent [baseline] (778.403 ms) : 0, 778403
BytebuddyAgent [candidate] (779.174 ms) : 0, 779174
GlobalTracer [baseline] (296.5 ms) : 0, 296500
GlobalTracer [candidate] (296.644 ms) : 0, 296644
AppSec [baseline] (51.498 ms) : 0, 51498
AppSec [candidate] (49.897 ms) : 0, 49897
Remote Config [baseline] (596.645 µs) : 0, 597
Remote Config [candidate] (591.408 µs) : 0, 591
Telemetry [baseline] (7.937 ms) : 0, 7937
Telemetry [candidate] (8.723 ms) : 0, 8723
IAST [baseline] (22.619 ms) : 0, 22619
IAST [candidate] (25.928 ms) : 0, 25928
section profiling
BytebuddyAgent [baseline] (665.804 ms) : 0, 665804
BytebuddyAgent [candidate] (664.595 ms) : 0, 664595
GlobalTracer [baseline] (392.784 ms) : 0, 392784
GlobalTracer [candidate] (389.315 ms) : 0, 389315
AppSec [baseline] (52.751 ms) : 0, 52751
AppSec [candidate] (52.25 ms) : 0, 52250
Remote Config [baseline] (694.132 µs) : 0, 694
Remote Config [candidate] (681.468 µs) : 0, 681
Telemetry [baseline] (7.445 ms) : 0, 7445
Telemetry [candidate] (7.336 ms) : 0, 7336
ProfilingAgent [baseline] (97.03 ms) : 0, 97030
ProfilingAgent [candidate] (95.234 ms) : 0, 95234
Profiling [baseline] (97.054 ms) : 0, 97054
Profiling [candidate] (95.257 ms) : 0, 95257
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 8 metrics, 20 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section baseline
no_agent (361.768 µs) : 343, 381
. : milestone, 362,
iast (477.955 µs) : 456, 500
. : milestone, 478,
iast_FULL (547.673 µs) : 527, 569
. : milestone, 548,
iast_GLOBAL (507.258 µs) : 486, 529
. : milestone, 507,
iast_HARDCODED_SECRET_DISABLED (480.146 µs) : 458, 502
. : milestone, 480,
iast_INACTIVE (440.189 µs) : 419, 461
. : milestone, 440,
iast_TELEMETRY_OFF (470.961 µs) : 448, 493
. : milestone, 471,
tracing (434.193 µs) : 414, 455
. : milestone, 434,
section candidate
no_agent (370.664 µs) : 350, 391
. : milestone, 371,
iast (478.498 µs) : 456, 501
. : milestone, 478,
iast_FULL (547.829 µs) : 527, 569
. : milestone, 548,
iast_GLOBAL (503.965 µs) : 482, 526
. : milestone, 504,
iast_HARDCODED_SECRET_DISABLED (481.232 µs) : 459, 504
. : milestone, 481,
iast_INACTIVE (450.9 µs) : 429, 472
. : milestone, 451,
iast_TELEMETRY_OFF (466.596 µs) : 444, 489
. : milestone, 467,
tracing (436.118 µs) : 416, 457
. : milestone, 436,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section baseline
no_agent (1.345 ms) : 1325, 1365
. : milestone, 1345,
appsec (1.725 ms) : 1702, 1748
. : milestone, 1725,
appsec_no_iast (1.741 ms) : 1718, 1765
. : milestone, 1741,
iast (1.481 ms) : 1458, 1504
. : milestone, 1481,
profiling (1.483 ms) : 1457, 1508
. : milestone, 1483,
tracing (1.472 ms) : 1448, 1496
. : milestone, 1472,
section candidate
no_agent (1.344 ms) : 1324, 1363
. : milestone, 1344,
appsec (1.724 ms) : 1699, 1749
. : milestone, 1724,
appsec_no_iast (1.732 ms) : 1709, 1756
. : milestone, 1732,
iast (1.467 ms) : 1445, 1490
. : milestone, 1467,
profiling (1.478 ms) : 1453, 1503
. : milestone, 1478,
tracing (1.473 ms) : 1449, 1498
. : milestone, 1473,
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.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section baseline
no_agent (1.461 ms) : 1450, 1473
. : milestone, 1461,
appsec (2.222 ms) : 2187, 2257
. : milestone, 2222,
iast (1.993 ms) : 1949, 2037
. : milestone, 1993,
iast_GLOBAL (2.029 ms) : 1985, 2073
. : milestone, 2029,
profiling (1.857 ms) : 1823, 1891
. : milestone, 1857,
tracing (1.832 ms) : 1800, 1865
. : milestone, 1832,
section candidate
no_agent (1.457 ms) : 1445, 1468
. : milestone, 1457,
appsec (2.23 ms) : 2195, 2266
. : milestone, 2230,
iast (1.992 ms) : 1949, 2035
. : milestone, 1992,
iast_GLOBAL (2.02 ms) : 1975, 2064
. : milestone, 2020,
profiling (1.861 ms) : 1827, 1896
. : milestone, 1861,
tracing (1.836 ms) : 1803, 1869
. : milestone, 1836,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.39.0-SNAPSHOT~447a295d32, baseline=1.39.0-SNAPSHOT~074bc9bc4e
dateFormat X
axisFormat %s
section baseline
no_agent (15.351 s) : 15351000, 15351000
. : milestone, 15351000,
appsec (14.87 s) : 14870000, 14870000
. : milestone, 14870000,
iast (18.555 s) : 18555000, 18555000
. : milestone, 18555000,
iast_GLOBAL (17.921 s) : 17921000, 17921000
. : milestone, 17921000,
profiling (15.351 s) : 15351000, 15351000
. : milestone, 15351000,
tracing (15.192 s) : 15192000, 15192000
. : milestone, 15192000,
section candidate
no_agent (15.267 s) : 15267000, 15267000
. : milestone, 15267000,
appsec (15.434 s) : 15434000, 15434000
. : milestone, 15434000,
iast (18.813 s) : 18813000, 18813000
. : milestone, 18813000,
iast_GLOBAL (17.948 s) : 17948000, 17948000
. : milestone, 17948000,
profiling (15.51 s) : 15510000, 15510000
. : milestone, 15510000,
tracing (14.934 s) : 14934000, 14934000
. : milestone, 14934000,
|
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 looks okay 👍
447a295
to
3e63ae0
Compare
What Does This Do
This PR fixes the way the grpc server spans are marked as errored.
In fact, in case a server service was returning a status through a
StatusException
orStatusRuntimeException
, the span was marked as errored (becauseonError
generally does it) despite the fact thatdd.grpc.server.error.statuses
was excluding it.Now the
setError
on the span is called always. For info, a similar issue occurred for the http server decorator in the past and was due to the same buggy setError conditional logic.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: APMS-12919