-
Notifications
You must be signed in to change notification settings - Fork 324
Allow instrumented Spark trace linked to Openlineage originated context #7450
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
…ineage context is present
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 48 metrics, 15 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.39.0-SNAPSHOT~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.557 s) : 0, 1557441
Total [baseline] (14.339 s) : 0, 14338778
Agent [candidate] (1.551 s) : 0, 1550988
Total [candidate] (14.22 s) : 0, 14219821
section appsec
Agent [baseline] (1.738 s) : 0, 1737696
Total [baseline] (14.416 s) : 0, 14415581
Agent [candidate] (1.742 s) : 0, 1741811
Total [candidate] (14.426 s) : 0, 14425679
section iast
Agent [baseline] (1.717 s) : 0, 1717318
Total [baseline] (14.838 s) : 0, 14837590
Agent [candidate] (1.72 s) : 0, 1719632
Total [candidate] (14.889 s) : 0, 14888675
section profiling
Agent [baseline] (1.861 s) : 0, 1861448
Total [baseline] (14.682 s) : 0, 14682104
Agent [candidate] (1.864 s) : 0, 1863880
Total [candidate] (14.581 s) : 0, 14581208
gantt
title petclinic - break down per module: candidate=1.39.0-SNAPSHOT~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (998.134 ms) : 0, 998134
BytebuddyAgent [candidate] (993.596 ms) : 0, 993596
GlobalTracer [baseline] (455.712 ms) : 0, 455712
GlobalTracer [candidate] (454.724 ms) : 0, 454724
AppSec [baseline] (72.722 ms) : 0, 72722
AppSec [candidate] (72.026 ms) : 0, 72026
Remote Config [baseline] (838.94 µs) : 0, 839
Remote Config [candidate] (820.659 µs) : 0, 821
Telemetry [baseline] (9.921 ms) : 0, 9921
Telemetry [candidate] (9.731 ms) : 0, 9731
section appsec
BytebuddyAgent [baseline] (1.009 s) : 0, 1008825
BytebuddyAgent [candidate] (1.013 s) : 0, 1013223
GlobalTracer [baseline] (447.524 ms) : 0, 447524
GlobalTracer [candidate] (449.108 ms) : 0, 449108
AppSec [baseline] (235.562 ms) : 0, 235562
AppSec [candidate] (234.952 ms) : 0, 234952
Remote Config [baseline] (753.111 µs) : 0, 753
Remote Config [candidate] (759.404 µs) : 0, 759
Telemetry [baseline] (12.657 ms) : 0, 12657
Telemetry [candidate] (11.287 ms) : 0, 11287
IAST [baseline] (24.732 ms) : 0, 24732
IAST [candidate] (24.769 ms) : 0, 24769
section iast
BytebuddyAgent [baseline] (1.148 s) : 0, 1147976
BytebuddyAgent [candidate] (1.15 s) : 0, 1149683
GlobalTracer [baseline] (435.751 ms) : 0, 435751
GlobalTracer [candidate] (436.177 ms) : 0, 436177
AppSec [baseline] (71.059 ms) : 0, 71059
AppSec [candidate] (73.903 ms) : 0, 73903
Remote Config [baseline] (749.999 µs) : 0, 750
Remote Config [candidate] (744.462 µs) : 0, 744
Telemetry [baseline] (11.695 ms) : 0, 11695
Telemetry [candidate] (10.811 ms) : 0, 10811
IAST [baseline] (30.09 ms) : 0, 30090
IAST [candidate] (28.19 ms) : 0, 28190
section profiling
ProfilingAgent [baseline] (151.196 ms) : 0, 151196
ProfilingAgent [candidate] (151.089 ms) : 0, 151089
BytebuddyAgent [baseline] (984.728 ms) : 0, 984728
BytebuddyAgent [candidate] (987.246 ms) : 0, 987246
GlobalTracer [baseline] (585.511 ms) : 0, 585511
GlobalTracer [candidate] (585.32 ms) : 0, 585320
AppSec [baseline] (73.785 ms) : 0, 73785
AppSec [candidate] (73.832 ms) : 0, 73832
Remote Config [baseline] (911.412 µs) : 0, 911
Remote Config [candidate] (890.697 µs) : 0, 891
Telemetry [baseline] (9.528 ms) : 0, 9528
Telemetry [candidate] (9.417 ms) : 0, 9417
Profiling [baseline] (151.271 ms) : 0, 151271
Profiling [candidate] (151.161 ms) : 0, 151161
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.39.0-SNAPSHOT~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.554 s) : 0, 1553782
Total [baseline] (11.883 s) : 0, 11883367
Agent [candidate] (1.557 s) : 0, 1557160
Total [candidate] (11.817 s) : 0, 11817159
section iast
Agent [baseline] (1.718 s) : 0, 1718330
Total [baseline] (12.511 s) : 0, 12510728
Agent [candidate] (1.719 s) : 0, 1719347
Total [candidate] (12.54 s) : 0, 12540460
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.72 s) : 0, 1719631
Total [baseline] (12.466 s) : 0, 12466455
Agent [candidate] (1.718 s) : 0, 1717898
Total [candidate] (12.464 s) : 0, 12464250
section iast_TELEMETRY_OFF
Agent [baseline] (1.715 s) : 0, 1715378
Total [baseline] (12.503 s) : 0, 12502590
Agent [candidate] (1.712 s) : 0, 1711637
Total [candidate] (12.479 s) : 0, 12478545
gantt
title insecure-bank - break down per module: candidate=1.39.0-SNAPSHOT~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (995.913 ms) : 0, 995913
BytebuddyAgent [candidate] (997.881 ms) : 0, 997881
GlobalTracer [baseline] (454.77 ms) : 0, 454770
GlobalTracer [candidate] (455.731 ms) : 0, 455731
AppSec [baseline] (72.436 ms) : 0, 72436
AppSec [candidate] (72.661 ms) : 0, 72661
Remote Config [baseline] (822.884 µs) : 0, 823
Remote Config [candidate] (830.734 µs) : 0, 831
Telemetry [baseline] (9.798 ms) : 0, 9798
Telemetry [candidate] (9.88 ms) : 0, 9880
section iast
BytebuddyAgent [baseline] (1.149 s) : 0, 1148848
BytebuddyAgent [candidate] (1.15 s) : 0, 1150048
GlobalTracer [baseline] (435.991 ms) : 0, 435991
GlobalTracer [candidate] (436.406 ms) : 0, 436406
AppSec [baseline] (72.73 ms) : 0, 72730
AppSec [candidate] (71.043 ms) : 0, 71043
IAST [baseline] (29.062 ms) : 0, 29062
IAST [candidate] (29.216 ms) : 0, 29216
Remote Config [baseline] (741.232 µs) : 0, 741
Remote Config [candidate] (785.791 µs) : 0, 786
Telemetry [baseline] (10.899 ms) : 0, 10899
Telemetry [candidate] (11.727 ms) : 0, 11727
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (1.15 s) : 0, 1149879
BytebuddyAgent [candidate] (1.149 s) : 0, 1148576
GlobalTracer [baseline] (436.072 ms) : 0, 436072
GlobalTracer [candidate] (436.176 ms) : 0, 436176
AppSec [baseline] (74.548 ms) : 0, 74548
AppSec [candidate] (73.78 ms) : 0, 73780
IAST [baseline] (28.237 ms) : 0, 28237
IAST [candidate] (29.254 ms) : 0, 29254
Remote Config [baseline] (734.232 µs) : 0, 734
Remote Config [candidate] (734.337 µs) : 0, 734
Telemetry [baseline] (10.08 ms) : 0, 10080
Telemetry [candidate] (9.225 ms) : 0, 9225
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (1.147 s) : 0, 1146952
BytebuddyAgent [candidate] (1.143 s) : 0, 1143402
GlobalTracer [baseline] (435.846 ms) : 0, 435846
GlobalTracer [candidate] (435.404 ms) : 0, 435404
AppSec [baseline] (70.251 ms) : 0, 70251
AppSec [candidate] (71.81 ms) : 0, 71810
IAST [baseline] (30.48 ms) : 0, 30480
IAST [candidate] (29.299 ms) : 0, 29299
Remote Config [baseline] (780.532 µs) : 0, 781
Remote Config [candidate] (737.755 µs) : 0, 738
Telemetry [baseline] (11.011 ms) : 0, 11011
Telemetry [candidate] (10.886 ms) : 0, 10886
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 17 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.39.0-SNAPSHOT~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section baseline
no_agent (370.191 µs) : 350, 390
. : milestone, 370,
iast (487.51 µs) : 465, 510
. : milestone, 488,
iast_FULL (553.61 µs) : 532, 576
. : milestone, 554,
iast_GLOBAL (517.94 µs) : 494, 542
. : milestone, 518,
iast_HARDCODED_SECRET_DISABLED (485.119 µs) : 463, 508
. : milestone, 485,
iast_INACTIVE (447.176 µs) : 426, 468
. : milestone, 447,
iast_TELEMETRY_OFF (477.253 µs) : 456, 499
. : milestone, 477,
tracing (440.191 µs) : 420, 461
. : milestone, 440,
section candidate
no_agent (365.662 µs) : 346, 385
. : milestone, 366,
iast (480.7 µs) : 458, 503
. : milestone, 481,
iast_FULL (558.255 µs) : 537, 579
. : milestone, 558,
iast_GLOBAL (523.341 µs) : 500, 546
. : milestone, 523,
iast_HARDCODED_SECRET_DISABLED (493.79 µs) : 472, 516
. : milestone, 494,
iast_INACTIVE (443.176 µs) : 423, 464
. : milestone, 443,
iast_TELEMETRY_OFF (465.545 µs) : 445, 486
. : milestone, 466,
tracing (447.574 µs) : 427, 468
. : milestone, 448,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.39.0-SNAPSHOT~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section baseline
no_agent (1.359 ms) : 1340, 1379
. : milestone, 1359,
appsec (1.737 ms) : 1714, 1761
. : milestone, 1737,
appsec_no_iast (1.715 ms) : 1691, 1739
. : milestone, 1715,
iast (1.479 ms) : 1456, 1502
. : milestone, 1479,
profiling (1.541 ms) : 1514, 1567
. : milestone, 1541,
tracing (1.469 ms) : 1446, 1493
. : milestone, 1469,
section candidate
no_agent (1.351 ms) : 1332, 1370
. : milestone, 1351,
appsec (1.722 ms) : 1699, 1745
. : milestone, 1722,
appsec_no_iast (1.735 ms) : 1712, 1759
. : milestone, 1735,
iast (1.48 ms) : 1457, 1503
. : milestone, 1480,
profiling (1.486 ms) : 1462, 1511
. : milestone, 1486,
tracing (1.455 ms) : 1430, 1480
. : milestone, 1455,
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~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section baseline
no_agent (1.454 ms) : 1443, 1466
. : milestone, 1454,
appsec (2.231 ms) : 2196, 2265
. : milestone, 2231,
iast (1.976 ms) : 1933, 2019
. : milestone, 1976,
iast_GLOBAL (2.033 ms) : 1989, 2078
. : milestone, 2033,
profiling (1.856 ms) : 1822, 1890
. : milestone, 1856,
tracing (1.834 ms) : 1801, 1866
. : milestone, 1834,
section candidate
no_agent (1.462 ms) : 1450, 1473
. : milestone, 1462,
appsec (2.225 ms) : 2190, 2260
. : milestone, 2225,
iast (1.966 ms) : 1924, 2008
. : milestone, 1966,
iast_GLOBAL (2.027 ms) : 1983, 2070
. : milestone, 2027,
profiling (1.854 ms) : 1820, 1888
. : milestone, 1854,
tracing (1.847 ms) : 1814, 1880
. : milestone, 1847,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.39.0-SNAPSHOT~dbf8e55f45, baseline=1.39.0-SNAPSHOT~62eb0c29c3
dateFormat X
axisFormat %s
section baseline
no_agent (15.399 s) : 15399000, 15399000
. : milestone, 15399000,
appsec (14.973 s) : 14973000, 14973000
. : milestone, 14973000,
iast (18.808 s) : 18808000, 18808000
. : milestone, 18808000,
iast_GLOBAL (17.948 s) : 17948000, 17948000
. : milestone, 17948000,
profiling (15.92 s) : 15920000, 15920000
. : milestone, 15920000,
tracing (14.964 s) : 14964000, 14964000
. : milestone, 14964000,
section candidate
no_agent (15.503 s) : 15503000, 15503000
. : milestone, 15503000,
appsec (14.898 s) : 14898000, 14898000
. : milestone, 14898000,
iast (18.826 s) : 18826000, 18826000
. : milestone, 18826000,
iast_GLOBAL (17.917 s) : 17917000, 17917000
. : milestone, 17917000,
profiling (15.395 s) : 15395000, 15395000
. : milestone, 15395000,
tracing (15.002 s) : 15002000, 15002000
. : milestone, 15002000,
|
…context is present
PerfectSlayer
left a comment
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.
Few minor comments from Language Platform POV.
You might want a review from Integrations and Data Modelling too
...tation/spark/src/main/java/datadog/trace/instrumentation/spark/OpenlineageParentContext.java
Outdated
Show resolved
Hide resolved
...tation/spark/src/main/java/datadog/trace/instrumentation/spark/OpenlineageParentContext.java
Outdated
Show resolved
Hide resolved
.../testFixtures/groovy/datadog/trace/instrumentation/spark/OpenlineageParentContextTest.groovy
Show resolved
Hide resolved
…and runId being a valid UUID
PerfectSlayer
left a comment
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.
LGTM! Thanks for taking into account my comments 👍
|
Removing IDM since there does not seem to have any changes on our owned files |
|
/merge |
|
🚂 MergeQueue: waiting for PR to be ready This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals. Use |
|
This merge request was unqueued If you need support, contact us on Slack #devflow! |
|
Did the bot just created a bunch of label on the repo by himself? 🤔 |
What Does This Do
If Openlineage context (parent job namespace, job name, run id) is detected in the Spark configuration, the Spark instrumentation generates the TraceID and SpanId for the root Span in a certain way such that it matches the upstream's cue, allowing the Trace from upstream task and the Spark trace linked together in Datadog.
Motivation
Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any usefull labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]