-
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
Migrate certain instrumentations to use closeActive() to close outstanding spans #8503
Migrate certain instrumentations to use closeActive() to close outstanding spans #8503
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 4 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.036 s) : 0, 1036323
Total [baseline] (8.629 s) : 0, 8629083
Agent [candidate] (1.043 s) : 0, 1042746
Total [candidate] (8.687 s) : 0, 8686846
section iast
Agent [baseline] (1.174 s) : 0, 1174048
Total [baseline] (9.234 s) : 0, 9233971
Agent [candidate] (1.169 s) : 0, 1169294
Total [candidate] (9.232 s) : 0, 9231745
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.171 s) : 0, 1170614
Total [baseline] (9.209 s) : 0, 9209324
Agent [candidate] (1.169 s) : 0, 1169304
Total [candidate] (9.176 s) : 0, 9176472
section iast_TELEMETRY_OFF
Agent [baseline] (1.173 s) : 0, 1172959
Total [baseline] (9.23 s) : 0, 9229676
Agent [candidate] (1.168 s) : 0, 1168268
Total [candidate] (9.2 s) : 0, 9199614
gantt
title insecure-bank - break down per module: candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (715.484 ms) : 0, 715484
BytebuddyAgent [candidate] (718.387 ms) : 0, 718387
GlobalTracer [baseline] (239.018 ms) : 0, 239018
GlobalTracer [candidate] (238.803 ms) : 0, 238803
AppSec [baseline] (54.798 ms) : 0, 54798
AppSec [candidate] (55.014 ms) : 0, 55014
Remote Config [baseline] (680.006 µs) : 0, 680
Remote Config [candidate] (684.684 µs) : 0, 685
Telemetry [baseline] (11.337 ms) : 0, 11337
Telemetry [candidate] (14.905 ms) : 0, 14905
section iast
BytebuddyAgent [baseline] (839.944 ms) : 0, 839944
BytebuddyAgent [candidate] (835.545 ms) : 0, 835545
GlobalTracer [baseline] (230.509 ms) : 0, 230509
GlobalTracer [candidate] (230.002 ms) : 0, 230002
AppSec [baseline] (56.459 ms) : 0, 56459
AppSec [candidate] (56.723 ms) : 0, 56723
Remote Config [baseline] (615.81 µs) : 0, 616
Remote Config [candidate] (624.788 µs) : 0, 625
Telemetry [baseline] (8.725 ms) : 0, 8725
Telemetry [candidate] (8.732 ms) : 0, 8732
IAST [baseline] (22.796 ms) : 0, 22796
IAST [candidate] (22.771 ms) : 0, 22771
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (835.919 ms) : 0, 835919
BytebuddyAgent [candidate] (835.521 ms) : 0, 835521
GlobalTracer [baseline] (230.477 ms) : 0, 230477
GlobalTracer [candidate] (230.011 ms) : 0, 230011
AppSec [baseline] (56.955 ms) : 0, 56955
AppSec [candidate] (56.819 ms) : 0, 56819
Remote Config [baseline] (609.253 µs) : 0, 609
Remote Config [candidate] (620.197 µs) : 0, 620
Telemetry [baseline] (8.664 ms) : 0, 8664
Telemetry [candidate] (8.701 ms) : 0, 8701
IAST [baseline] (22.988 ms) : 0, 22988
IAST [candidate] (22.691 ms) : 0, 22691
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (835.813 ms) : 0, 835813
BytebuddyAgent [candidate] (834.853 ms) : 0, 834853
GlobalTracer [baseline] (232.583 ms) : 0, 232583
GlobalTracer [candidate] (230.583 ms) : 0, 230583
AppSec [baseline] (56.4 ms) : 0, 56400
AppSec [candidate] (55.645 ms) : 0, 55645
Remote Config [baseline] (629.029 µs) : 0, 629
Remote Config [candidate] (608.171 µs) : 0, 608
Telemetry [baseline] (8.834 ms) : 0, 8834
Telemetry [candidate] (8.559 ms) : 0, 8559
IAST [baseline] (23.663 ms) : 0, 23663
IAST [candidate] (23.069 ms) : 0, 23069
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.041 s) : 0, 1041441
Total [baseline] (10.436 s) : 0, 10436302
Agent [candidate] (1.04 s) : 0, 1040101
Total [candidate] (10.433 s) : 0, 10433120
section appsec
Agent [baseline] (1.182 s) : 0, 1181827
Total [baseline] (10.764 s) : 0, 10764140
Agent [candidate] (1.182 s) : 0, 1181956
Total [candidate] (10.723 s) : 0, 10723152
section iast
Agent [baseline] (1.175 s) : 0, 1175437
Total [baseline] (10.994 s) : 0, 10994148
Agent [candidate] (1.187 s) : 0, 1187138
Total [candidate] (11.092 s) : 0, 11091717
section profiling
Agent [baseline] (1.256 s) : 0, 1255654
Total [baseline] (10.775 s) : 0, 10774544
Agent [candidate] (1.269 s) : 0, 1269128
Total [candidate] (10.894 s) : 0, 10893896
gantt
title petclinic - break down per module: candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (716.79 ms) : 0, 716790
BytebuddyAgent [candidate] (717.465 ms) : 0, 717465
GlobalTracer [baseline] (239.983 ms) : 0, 239983
GlobalTracer [candidate] (239.62 ms) : 0, 239620
AppSec [baseline] (55.298 ms) : 0, 55298
AppSec [candidate] (55.186 ms) : 0, 55186
Remote Config [baseline] (688.239 µs) : 0, 688
Remote Config [candidate] (686.591 µs) : 0, 687
Telemetry [baseline] (13.629 ms) : 0, 13629
Telemetry [candidate] (12.224 ms) : 0, 12224
section appsec
BytebuddyAgent [baseline] (734.144 ms) : 0, 734144
BytebuddyAgent [candidate] (734.535 ms) : 0, 734535
GlobalTracer [baseline] (236.288 ms) : 0, 236288
GlobalTracer [candidate] (236.212 ms) : 0, 236212
AppSec [baseline] (176.405 ms) : 0, 176405
AppSec [candidate] (176.608 ms) : 0, 176608
Remote Config [baseline] (663.473 µs) : 0, 663
Remote Config [candidate] (655.645 µs) : 0, 656
Telemetry [baseline] (8.601 ms) : 0, 8601
Telemetry [candidate] (8.242 ms) : 0, 8242
IAST [baseline] (21.607 ms) : 0, 21607
IAST [candidate] (21.636 ms) : 0, 21636
section iast
BytebuddyAgent [baseline] (839.586 ms) : 0, 839586
BytebuddyAgent [candidate] (849.846 ms) : 0, 849846
GlobalTracer [baseline] (231.383 ms) : 0, 231383
GlobalTracer [candidate] (232.621 ms) : 0, 232621
AppSec [baseline] (57.269 ms) : 0, 57269
AppSec [candidate] (57.043 ms) : 0, 57043
Remote Config [baseline] (616.546 µs) : 0, 617
Remote Config [candidate] (624.315 µs) : 0, 624
Telemetry [baseline] (8.699 ms) : 0, 8699
Telemetry [candidate] (8.78 ms) : 0, 8780
IAST [baseline] (22.856 ms) : 0, 22856
IAST [candidate] (23.106 ms) : 0, 23106
section profiling
BytebuddyAgent [baseline] (707.274 ms) : 0, 707274
BytebuddyAgent [candidate] (713.529 ms) : 0, 713529
GlobalTracer [baseline] (347.526 ms) : 0, 347526
GlobalTracer [candidate] (352.544 ms) : 0, 352544
AppSec [baseline] (54.932 ms) : 0, 54932
AppSec [candidate] (54.865 ms) : 0, 54865
Remote Config [baseline] (671.601 µs) : 0, 672
Remote Config [candidate] (673.071 µs) : 0, 673
Telemetry [baseline] (8.916 ms) : 0, 8916
Telemetry [candidate] (9.033 ms) : 0, 9033
ProfilingAgent [baseline] (96.031 ms) : 0, 96031
ProfilingAgent [candidate] (97.753 ms) : 0, 97753
Profiling [baseline] (96.057 ms) : 0, 96057
Profiling [candidate] (97.777 ms) : 0, 97777
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 insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section baseline
no_agent (376.142 µs) : 356, 396
. : milestone, 376,
iast (509.696 µs) : 488, 531
. : milestone, 510,
iast_FULL (733.134 µs) : 711, 755
. : milestone, 733,
iast_GLOBAL (558.207 µs) : 536, 581
. : milestone, 558,
iast_HARDCODED_SECRET_DISABLED (512.185 µs) : 490, 535
. : milestone, 512,
iast_INACTIVE (464.735 µs) : 443, 487
. : milestone, 465,
iast_TELEMETRY_OFF (495.463 µs) : 473, 518
. : milestone, 495,
tracing (464.474 µs) : 443, 486
. : milestone, 464,
section candidate
no_agent (381.328 µs) : 362, 401
. : milestone, 381,
iast (503.564 µs) : 482, 525
. : milestone, 504,
iast_FULL (730.902 µs) : 709, 753
. : milestone, 731,
iast_GLOBAL (559.49 µs) : 538, 581
. : milestone, 559,
iast_HARDCODED_SECRET_DISABLED (510.882 µs) : 488, 534
. : milestone, 511,
iast_INACTIVE (460.77 µs) : 439, 482
. : milestone, 461,
iast_TELEMETRY_OFF (500.319 µs) : 478, 523
. : milestone, 500,
tracing (454.657 µs) : 434, 475
. : milestone, 455,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section baseline
no_agent (1.363 ms) : 1344, 1382
. : milestone, 1363,
appsec (1.73 ms) : 1706, 1754
. : milestone, 1730,
appsec_no_iast (1.71 ms) : 1686, 1734
. : milestone, 1710,
code_origins (1.679 ms) : 1645, 1713
. : milestone, 1679,
iast (1.51 ms) : 1486, 1533
. : milestone, 1510,
profiling (1.511 ms) : 1487, 1534
. : milestone, 1511,
tracing (1.473 ms) : 1448, 1498
. : milestone, 1473,
section candidate
no_agent (1.355 ms) : 1335, 1375
. : milestone, 1355,
appsec (1.716 ms) : 1692, 1739
. : milestone, 1716,
appsec_no_iast (1.732 ms) : 1706, 1757
. : milestone, 1732,
code_origins (1.671 ms) : 1637, 1704
. : milestone, 1671,
iast (1.504 ms) : 1480, 1527
. : milestone, 1504,
profiling (1.531 ms) : 1507, 1555
. : milestone, 1531,
tracing (1.48 ms) : 1455, 1504
. : milestone, 1480,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section baseline
no_agent (1.472 ms) : 1461, 1484
. : milestone, 1472,
appsec (2.325 ms) : 2281, 2368
. : milestone, 2325,
iast (2.122 ms) : 2067, 2177
. : milestone, 2122,
iast_GLOBAL (2.162 ms) : 2106, 2217
. : milestone, 2162,
profiling (2.435 ms) : 2255, 2615
. : milestone, 2435,
tracing (1.941 ms) : 1899, 1982
. : milestone, 1941,
section candidate
no_agent (1.475 ms) : 1463, 1487
. : milestone, 1475,
appsec (2.347 ms) : 2303, 2391
. : milestone, 2347,
iast (2.118 ms) : 2063, 2173
. : milestone, 2118,
iast_GLOBAL (2.157 ms) : 2102, 2213
. : milestone, 2157,
profiling (1.969 ms) : 1925, 2012
. : milestone, 1969,
tracing (1.951 ms) : 1909, 1993
. : milestone, 1951,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.48.0-SNAPSHOT~6bf71015f7, baseline=1.48.0-SNAPSHOT~039404dfa5
dateFormat X
axisFormat %s
section baseline
no_agent (14.823 s) : 14823000, 14823000
. : milestone, 14823000,
appsec (15.077 s) : 15077000, 15077000
. : milestone, 15077000,
iast (18.855 s) : 18855000, 18855000
. : milestone, 18855000,
iast_GLOBAL (18.054 s) : 18054000, 18054000
. : milestone, 18054000,
profiling (15.154 s) : 15154000, 15154000
. : milestone, 15154000,
tracing (14.901 s) : 14901000, 14901000
. : milestone, 14901000,
section candidate
no_agent (14.816 s) : 14816000, 14816000
. : milestone, 14816000,
appsec (15.107 s) : 15107000, 15107000
. : milestone, 15107000,
iast (18.516 s) : 18516000, 18516000
. : milestone, 18516000,
iast_GLOBAL (18.289 s) : 18289000, 18289000
. : milestone, 18289000,
profiling (15.11 s) : 15110000, 15110000
. : milestone, 15110000,
tracing (15.0 s) : 15000000, 15000000
. : milestone, 15000000,
|
dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/domain/TestImpl.java
Show resolved
Hide resolved
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.
looks ok. Thanks for the new API
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.
Looking good. Left few comments about the original code comments
dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/domain/TestImpl.java
Outdated
Show resolved
Hide resolved
dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/domain/TestImpl.java
Outdated
Show resolved
Hide resolved
...agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/domain/TestSuiteImpl.java
Outdated
Show resolved
Hide resolved
05b7f22
to
f6e8b55
Compare
41640fe
to
0e24550
Compare
0e24550
to
9603115
Compare
9603115
to
6bf7101
Compare
Motivation
These instrumentations just want to close the active span when it matches certain criteria.
Since #8478 they can now use
activeSpan()
to check the active span andcloseActive()
to close itContributor 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-956