-
Notifications
You must be signed in to change notification settings - Fork 292
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
Ensure test session trace ID and span ID are the same #7747
Ensure test session trace ID and span ID are the same #7747
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 52 metrics, 11 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.066 s) : 0, 1065869
Total [baseline] (10.376 s) : 0, 10375734
Agent [candidate] (1.067 s) : 0, 1066670
Total [candidate] (10.346 s) : 0, 10346295
section appsec
Agent [baseline] (1.201 s) : 0, 1201403
Total [baseline] (10.546 s) : 0, 10545723
Agent [candidate] (1.205 s) : 0, 1205199
Total [candidate] (10.537 s) : 0, 10537432
section iast
Agent [baseline] (1.202 s) : 0, 1201583
Total [baseline] (10.911 s) : 0, 10911437
Agent [candidate] (1.201 s) : 0, 1201297
Total [candidate] (10.806 s) : 0, 10805527
section profiling
Agent [baseline] (1.263 s) : 0, 1263009
Total [baseline] (10.602 s) : 0, 10601519
Agent [candidate] (1.268 s) : 0, 1267601
Total [candidate] (10.563 s) : 0, 10562809
gantt
title petclinic - break down per module: candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (680.758 ms) : 0, 680758
BytebuddyAgent [candidate] (680.979 ms) : 0, 680979
GlobalTracer [baseline] (309.628 ms) : 0, 309628
GlobalTracer [candidate] (310.161 ms) : 0, 310161
AppSec [baseline] (53.699 ms) : 0, 53699
AppSec [candidate] (53.707 ms) : 0, 53707
Remote Config [baseline] (654.232 µs) : 0, 654
Remote Config [candidate] (662.694 µs) : 0, 663
Telemetry [baseline] (7.547 ms) : 0, 7547
Telemetry [candidate] (7.525 ms) : 0, 7525
section appsec
BytebuddyAgent [baseline] (698.856 ms) : 0, 698856
BytebuddyAgent [candidate] (700.492 ms) : 0, 700492
GlobalTracer [baseline] (306.917 ms) : 0, 306917
GlobalTracer [candidate] (308.097 ms) : 0, 308097
AppSec [baseline] (162.349 ms) : 0, 162349
AppSec [candidate] (162.979 ms) : 0, 162979
Remote Config [baseline] (633.83 µs) : 0, 634
Remote Config [candidate] (641.755 µs) : 0, 642
Telemetry [baseline] (8.545 ms) : 0, 8545
Telemetry [candidate] (8.487 ms) : 0, 8487
IAST [baseline] (20.945 ms) : 0, 20945
IAST [candidate] (21.714 ms) : 0, 21714
section iast
BytebuddyAgent [baseline] (801.09 ms) : 0, 801090
BytebuddyAgent [candidate] (801.3 ms) : 0, 801300
GlobalTracer [baseline] (300.323 ms) : 0, 300323
GlobalTracer [candidate] (300.476 ms) : 0, 300476
AppSec [baseline] (53.5 ms) : 0, 53500
AppSec [candidate] (54.71 ms) : 0, 54710
Remote Config [baseline] (603.503 µs) : 0, 604
Remote Config [candidate] (602.604 µs) : 0, 603
Telemetry [baseline] (7.033 ms) : 0, 7033
Telemetry [candidate] (7.035 ms) : 0, 7035
IAST [baseline] (25.36 ms) : 0, 25360
IAST [candidate] (23.453 ms) : 0, 23453
section profiling
BytebuddyAgent [baseline] (673.962 ms) : 0, 673962
BytebuddyAgent [candidate] (675.888 ms) : 0, 675888
GlobalTracer [baseline] (391.702 ms) : 0, 391702
GlobalTracer [candidate] (393.173 ms) : 0, 393173
AppSec [baseline] (54.549 ms) : 0, 54549
AppSec [candidate] (54.759 ms) : 0, 54759
Remote Config [baseline] (640.574 µs) : 0, 641
Remote Config [candidate] (648.07 µs) : 0, 648
Telemetry [baseline] (7.376 ms) : 0, 7376
Telemetry [candidate] (7.408 ms) : 0, 7408
ProfilingAgent [baseline] (96.33 ms) : 0, 96330
ProfilingAgent [candidate] (97.186 ms) : 0, 97186
Profiling [baseline] (96.353 ms) : 0, 96353
Profiling [candidate] (97.209 ms) : 0, 97209
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.067 s) : 0, 1066702
Total [baseline] (8.569 s) : 0, 8569378
Agent [candidate] (1.073 s) : 0, 1073408
Total [candidate] (8.585 s) : 0, 8584531
section iast
Agent [baseline] (1.204 s) : 0, 1204040
Total [baseline] (9.101 s) : 0, 9100539
Agent [candidate] (1.192 s) : 0, 1192143
Total [candidate] (9.073 s) : 0, 9072764
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.192 s) : 0, 1192172
Total [baseline] (9.033 s) : 0, 9033196
Agent [candidate] (1.203 s) : 0, 1203093
Total [candidate] (9.059 s) : 0, 9058851
section iast_TELEMETRY_OFF
Agent [baseline] (1.201 s) : 0, 1200522
Total [baseline] (9.111 s) : 0, 9110632
Agent [candidate] (1.189 s) : 0, 1189100
Total [candidate] (9.066 s) : 0, 9065696
gantt
title insecure-bank - break down per module: candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (680.895 ms) : 0, 680895
BytebuddyAgent [candidate] (685.745 ms) : 0, 685745
GlobalTracer [baseline] (310.18 ms) : 0, 310180
GlobalTracer [candidate] (311.61 ms) : 0, 311610
AppSec [baseline] (53.764 ms) : 0, 53764
AppSec [candidate] (54.102 ms) : 0, 54102
Remote Config [baseline] (657.743 µs) : 0, 658
Remote Config [candidate] (662.255 µs) : 0, 662
Telemetry [baseline] (7.544 ms) : 0, 7544
Telemetry [candidate] (7.577 ms) : 0, 7577
section iast
BytebuddyAgent [baseline] (802.949 ms) : 0, 802949
BytebuddyAgent [candidate] (794.333 ms) : 0, 794333
GlobalTracer [baseline] (300.951 ms) : 0, 300951
GlobalTracer [candidate] (298.512 ms) : 0, 298512
AppSec [baseline] (57.217 ms) : 0, 57217
AppSec [candidate] (55.134 ms) : 0, 55134
IAST [baseline] (21.434 ms) : 0, 21434
IAST [candidate] (22.877 ms) : 0, 22877
Remote Config [baseline] (613.561 µs) : 0, 614
Remote Config [candidate] (606.556 µs) : 0, 607
Telemetry [baseline] (7.131 ms) : 0, 7131
Telemetry [candidate] (7.049 ms) : 0, 7049
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (794.199 ms) : 0, 794199
BytebuddyAgent [candidate] (801.809 ms) : 0, 801809
GlobalTracer [baseline] (298.309 ms) : 0, 298309
GlobalTracer [candidate] (301.057 ms) : 0, 301057
AppSec [baseline] (53.329 ms) : 0, 53329
AppSec [candidate] (55.695 ms) : 0, 55695
IAST [baseline] (24.325 ms) : 0, 24325
IAST [candidate] (22.965 ms) : 0, 22965
Remote Config [baseline] (603.56 µs) : 0, 604
Remote Config [candidate] (605.095 µs) : 0, 605
Telemetry [baseline] (7.782 ms) : 0, 7782
Telemetry [candidate] (7.155 ms) : 0, 7155
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (800.216 ms) : 0, 800216
BytebuddyAgent [candidate] (791.452 ms) : 0, 791452
GlobalTracer [baseline] (301.064 ms) : 0, 301064
GlobalTracer [candidate] (298.499 ms) : 0, 298499
AppSec [baseline] (55.596 ms) : 0, 55596
AppSec [candidate] (53.759 ms) : 0, 53759
IAST [baseline] (22.359 ms) : 0, 22359
IAST [candidate] (23.383 ms) : 0, 23383
Remote Config [baseline] (600.667 µs) : 0, 601
Remote Config [candidate] (606.211 µs) : 0, 606
Telemetry [baseline] (6.914 ms) : 0, 6914
Telemetry [candidate] (7.736 ms) : 0, 7736
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 15 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section baseline
no_agent (1.333 ms) : 1314, 1352
. : milestone, 1333,
appsec (1.726 ms) : 1702, 1751
. : milestone, 1726,
appsec_no_iast (1.747 ms) : 1723, 1771
. : milestone, 1747,
iast (1.472 ms) : 1449, 1495
. : milestone, 1472,
profiling (1.552 ms) : 1527, 1577
. : milestone, 1552,
tracing (1.49 ms) : 1466, 1514
. : milestone, 1490,
section candidate
no_agent (1.344 ms) : 1324, 1363
. : milestone, 1344,
appsec (1.739 ms) : 1716, 1763
. : milestone, 1739,
appsec_no_iast (1.746 ms) : 1722, 1770
. : milestone, 1746,
iast (1.489 ms) : 1466, 1512
. : milestone, 1489,
profiling (1.505 ms) : 1481, 1528
. : milestone, 1505,
tracing (1.488 ms) : 1464, 1512
. : milestone, 1488,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section baseline
no_agent (379.551 µs) : 359, 400
. : milestone, 380,
iast (484.051 µs) : 463, 505
. : milestone, 484,
iast_FULL (562.035 µs) : 541, 583
. : milestone, 562,
iast_GLOBAL (514.441 µs) : 494, 535
. : milestone, 514,
iast_HARDCODED_SECRET_DISABLED (487.331 µs) : 466, 509
. : milestone, 487,
iast_INACTIVE (453.917 µs) : 433, 475
. : milestone, 454,
iast_TELEMETRY_OFF (477.095 µs) : 456, 498
. : milestone, 477,
tracing (455.442 µs) : 434, 476
. : milestone, 455,
section candidate
no_agent (371.526 µs) : 351, 392
. : milestone, 372,
iast (483.967 µs) : 463, 505
. : milestone, 484,
iast_FULL (555.817 µs) : 535, 577
. : milestone, 556,
iast_GLOBAL (512.473 µs) : 491, 534
. : milestone, 512,
iast_HARDCODED_SECRET_DISABLED (491.874 µs) : 471, 513
. : milestone, 492,
iast_INACTIVE (450.865 µs) : 430, 472
. : milestone, 451,
iast_TELEMETRY_OFF (480.001 µs) : 459, 501
. : milestone, 480,
tracing (450.039 µs) : 430, 470
. : milestone, 450,
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 biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section baseline
no_agent (15.201 s) : 15201000, 15201000
. : milestone, 15201000,
appsec (15.205 s) : 15205000, 15205000
. : milestone, 15205000,
iast (19.09 s) : 19090000, 19090000
. : milestone, 19090000,
iast_GLOBAL (18.223 s) : 18223000, 18223000
. : milestone, 18223000,
profiling (15.279 s) : 15279000, 15279000
. : milestone, 15279000,
tracing (15.266 s) : 15266000, 15266000
. : milestone, 15266000,
section candidate
no_agent (14.817 s) : 14817000, 14817000
. : milestone, 14817000,
appsec (15.225 s) : 15225000, 15225000
. : milestone, 15225000,
iast (18.697 s) : 18697000, 18697000
. : milestone, 18697000,
iast_GLOBAL (17.815 s) : 17815000, 17815000
. : milestone, 17815000,
profiling (15.109 s) : 15109000, 15109000
. : milestone, 15109000,
tracing (15.059 s) : 15059000, 15059000
. : milestone, 15059000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.41.0-SNAPSHOT~309442ddd2, baseline=1.41.0-SNAPSHOT~2a9a4b7782
dateFormat X
axisFormat %s
section baseline
no_agent (1.47 ms) : 1459, 1482
. : milestone, 1470,
appsec (2.312 ms) : 2272, 2353
. : milestone, 2312,
iast (2.062 ms) : 2011, 2113
. : milestone, 2062,
iast_GLOBAL (2.12 ms) : 2067, 2172
. : milestone, 2120,
profiling (1.936 ms) : 1893, 1979
. : milestone, 1936,
tracing (1.908 ms) : 1869, 1947
. : milestone, 1908,
section candidate
no_agent (1.464 ms) : 1452, 1475
. : milestone, 1464,
appsec (2.308 ms) : 2267, 2348
. : milestone, 2308,
iast (2.057 ms) : 2006, 2108
. : milestone, 2057,
iast_GLOBAL (2.101 ms) : 2049, 2153
. : milestone, 2101,
profiling (1.921 ms) : 1880, 1961
. : milestone, 1921,
tracing (1.903 ms) : 1864, 1942
. : milestone, 1903,
|
0bd88aa
to
309442d
Compare
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.
We discussed internally about the way to set the trace ID, by using SpanBuild.asChildOf()
with a dedicated SpanContext
implementation.
The PR looks good from Platform POV
What Does This Do
Updates the logic that creates test session span to ensure it has the same trace ID and span ID.
Motivation
This is needed because of a quirk of the CI Test Cycle protocol.
According to the protocol test session events do not have trace ID or span ID, they only have test session ID (the protocol mapping logic in the tracer maps trace ID to session ID when serializing the session event).
However, any APM span that is a child of the session has to have both trace ID and parent ID set to test session ID in order to be properly displayed in the flame graph.
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: SDTEST-983