Add field parent_stage_ids to spark.stage spans#6309
Merged
Conversation
In a spark job, input of a stage can be the output of a previous stage. This new fields parent_stage_ids will capture the dependency between stage to display it in the UI Specific implementation based on the scala version because the signature of scala.Seq is different
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 44 metrics, 10 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.25.0-SNAPSHOT~38c2568e9d, baseline=1.25.0-SNAPSHOT~7fb8faa37b
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.043 s) : 0, 1042503
Total [baseline] (9.314 s) : 0, 9314366
Agent [candidate] (1.05 s) : 0, 1050117
Total [candidate] (9.292 s) : 0, 9292357
section appsec
Agent [baseline] (1.136 s) : 0, 1136207
Total [baseline] (9.448 s) : 0, 9447932
Agent [candidate] (1.139 s) : 0, 1138562
Total [candidate] (9.406 s) : 0, 9405845
section iast
Agent [baseline] (1.16 s) : 0, 1160000
Total [baseline] (9.586 s) : 0, 9586174
Agent [candidate] (1.162 s) : 0, 1161533
Total [candidate] (9.588 s) : 0, 9588381
section profiling
Agent [baseline] (1.24 s) : 0, 1239742
Total [baseline] (9.615 s) : 0, 9614982
Agent [candidate] (1.255 s) : 0, 1255403
Total [candidate] (9.742 s) : 0, 9742122
gantt
title petclinic - break down per module: candidate=1.25.0-SNAPSHOT~38c2568e9d, baseline=1.25.0-SNAPSHOT~7fb8faa37b
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (645.021 ms) : 0, 645021
BytebuddyAgent [candidate] (649.794 ms) : 0, 649794
GlobalTracer [baseline] (306.834 ms) : 0, 306834
GlobalTracer [candidate] (309.085 ms) : 0, 309085
AppSec [baseline] (48.554 ms) : 0, 48554
AppSec [candidate] (48.811 ms) : 0, 48811
Remote Config [baseline] (669.826 µs) : 0, 670
Remote Config [candidate] (683.652 µs) : 0, 684
Telemetry [baseline] (7.094 ms) : 0, 7094
Telemetry [candidate] (7.215 ms) : 0, 7215
section appsec
BytebuddyAgent [baseline] (649.026 ms) : 0, 649026
BytebuddyAgent [candidate] (649.455 ms) : 0, 649455
GlobalTracer [baseline] (307.652 ms) : 0, 307652
GlobalTracer [candidate] (307.627 ms) : 0, 307627
AppSec [baseline] (137.027 ms) : 0, 137027
AppSec [candidate] (137.574 ms) : 0, 137574
Remote Config [baseline] (645.617 µs) : 0, 646
Remote Config [candidate] (652.0 µs) : 0, 652
Telemetry [baseline] (7.468 ms) : 0, 7468
Telemetry [candidate] (8.772 ms) : 0, 8772
section iast
BytebuddyAgent [baseline] (765.635 ms) : 0, 765635
BytebuddyAgent [candidate] (767.19 ms) : 0, 767190
GlobalTracer [baseline] (284.577 ms) : 0, 284577
GlobalTracer [candidate] (285.076 ms) : 0, 285076
AppSec [baseline] (46.857 ms) : 0, 46857
AppSec [candidate] (46.641 ms) : 0, 46641
Remote Config [baseline] (618.093 µs) : 0, 618
Remote Config [candidate] (624.808 µs) : 0, 625
Telemetry [baseline] (8.76 ms) : 0, 8760
Telemetry [candidate] (7.372 ms) : 0, 7372
IAST [baseline] (19.256 ms) : 0, 19256
IAST [candidate] (20.241 ms) : 0, 20241
section profiling
BytebuddyAgent [baseline] (660.712 ms) : 0, 660712
BytebuddyAgent [candidate] (669.654 ms) : 0, 669654
GlobalTracer [baseline] (378.75 ms) : 0, 378750
GlobalTracer [candidate] (382.718 ms) : 0, 382718
AppSec [baseline] (48.602 ms) : 0, 48602
AppSec [candidate] (49.53 ms) : 0, 49530
Remote Config [baseline] (698.027 µs) : 0, 698
Remote Config [candidate] (692.098 µs) : 0, 692
Telemetry [baseline] (8.111 ms) : 0, 8111
Telemetry [candidate] (7.533 ms) : 0, 7533
ProfilingAgent [baseline] (88.333 ms) : 0, 88333
ProfilingAgent [candidate] (90.025 ms) : 0, 90025
Profiling [baseline] (88.358 ms) : 0, 88358
Profiling [candidate] (90.05 ms) : 0, 90050
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.25.0-SNAPSHOT~38c2568e9d, baseline=1.25.0-SNAPSHOT~7fb8faa37b
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.042 s) : 0, 1042136
Total [baseline] (8.724 s) : 0, 8723904
Agent [candidate] (1.043 s) : 0, 1042684
Total [candidate] (8.736 s) : 0, 8736241
section iast
Agent [baseline] (1.158 s) : 0, 1158280
Total [baseline] (9.25 s) : 0, 9249675
Agent [candidate] (1.164 s) : 0, 1164438
Total [candidate] (9.263 s) : 0, 9263010
section iast_TELEMETRY_OFF
Agent [baseline] (1.149 s) : 0, 1149113
Total [baseline] (9.241 s) : 0, 9240808
Agent [candidate] (1.16 s) : 0, 1160285
Total [candidate] (9.27 s) : 0, 9269737
gantt
title insecure-bank - break down per module: candidate=1.25.0-SNAPSHOT~38c2568e9d, baseline=1.25.0-SNAPSHOT~7fb8faa37b
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (645.723 ms) : 0, 645723
BytebuddyAgent [candidate] (645.441 ms) : 0, 645441
GlobalTracer [baseline] (305.711 ms) : 0, 305711
GlobalTracer [candidate] (307.064 ms) : 0, 307064
AppSec [baseline] (48.502 ms) : 0, 48502
AppSec [candidate] (48.21 ms) : 0, 48210
Remote Config [baseline] (668.571 µs) : 0, 669
Remote Config [candidate] (669.274 µs) : 0, 669
Telemetry [baseline] (7.089 ms) : 0, 7089
Telemetry [candidate] (7.104 ms) : 0, 7104
section iast
BytebuddyAgent [baseline] (765.623 ms) : 0, 765623
BytebuddyAgent [candidate] (770.62 ms) : 0, 770620
GlobalTracer [baseline] (284.454 ms) : 0, 284454
GlobalTracer [candidate] (284.491 ms) : 0, 284491
AppSec [baseline] (46.478 ms) : 0, 46478
AppSec [candidate] (46.404 ms) : 0, 46404
Remote Config [baseline] (602.007 µs) : 0, 602
Remote Config [candidate] (597.406 µs) : 0, 597
Telemetry [baseline] (6.594 ms) : 0, 6594
Telemetry [candidate] (8.086 ms) : 0, 8086
IAST [baseline] (20.162 ms) : 0, 20162
IAST [candidate] (19.618 ms) : 0, 19618
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (757.221 ms) : 0, 757221
BytebuddyAgent [candidate] (764.212 ms) : 0, 764212
GlobalTracer [baseline] (284.769 ms) : 0, 284769
GlobalTracer [candidate] (287.21 ms) : 0, 287210
AppSec [baseline] (48.439 ms) : 0, 48439
AppSec [candidate] (47.4 ms) : 0, 47400
Remote Config [baseline] (584.168 µs) : 0, 584
Remote Config [candidate] (594.167 µs) : 0, 594
Telemetry [baseline] (7.887 ms) : 0, 7887
Telemetry [candidate] (8.703 ms) : 0, 8703
IAST [baseline] (15.952 ms) : 0, 15952
IAST [candidate] (17.628 ms) : 0, 17628
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 8 metrics, 14 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.25.0-SNAPSHOT~38c2568e9d, baseline=1.25.0-SNAPSHOT~7fb8faa37b
dateFormat X
axisFormat %s
section baseline
no_agent (1.357 ms) : 1338, 1376
. : milestone, 1357,
appsec (1.768 ms) : 1742, 1794
. : milestone, 1768,
iast (1.498 ms) : 1474, 1523
. : milestone, 1498,
profiling (1.503 ms) : 1478, 1528
. : milestone, 1503,
tracing (1.488 ms) : 1463, 1513
. : milestone, 1488,
section candidate
no_agent (1.375 ms) : 1356, 1395
. : milestone, 1375,
appsec (1.761 ms) : 1736, 1786
. : milestone, 1761,
iast (1.54 ms) : 1516, 1564
. : milestone, 1540,
profiling (1.497 ms) : 1471, 1522
. : milestone, 1497,
tracing (1.483 ms) : 1458, 1509
. : milestone, 1483,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.25.0-SNAPSHOT~38c2568e9d, baseline=1.25.0-SNAPSHOT~7fb8faa37b
dateFormat X
axisFormat %s
section baseline
no_agent (367.489 µs) : 347, 388
. : milestone, 367,
iast (472.394 µs) : 452, 493
. : milestone, 472,
iast_FULL (535.762 µs) : 515, 556
. : milestone, 536,
iast_INACTIVE (445.898 µs) : 425, 467
. : milestone, 446,
iast_TELEMETRY_OFF (469.255 µs) : 449, 490
. : milestone, 469,
tracing (440.748 µs) : 420, 462
. : milestone, 441,
section candidate
no_agent (364.621 µs) : 344, 385
. : milestone, 365,
iast (471.189 µs) : 451, 492
. : milestone, 471,
iast_FULL (534.744 µs) : 514, 555
. : milestone, 535,
iast_INACTIVE (447.491 µs) : 427, 468
. : milestone, 447,
iast_TELEMETRY_OFF (464.524 µs) : 444, 485
. : milestone, 465,
tracing (447.961 µs) : 427, 469
. : milestone, 448,
|
am312
approved these changes
Dec 12, 2023
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Does This Do
Add field
parent_stage_idstospark.stagespansMotivation
In a spark job, input of a stage can be the output of a previous stage. This new fields parent_stage_ids will capture the dependency between stage to display it in the UI
Additional Notes
Specific implementation based on the scala version because the signature of scala.Seq changed in scala 2.13