Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b6c8f9

Browse files
committed
[DJM-964] Add Spark physical plan with spark.sql spans
1 parent d76b984 commit 4b6c8f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dd-java-agent/instrumentation/spark/src/main/java/datadog/trace/instrumentation/spark/AbstractDatadogSparkListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ private AgentSpan getOrCreateSqlSpan(
411411
.withTag("query_id", sqlExecutionId)
412412
.withTag("description", queryStart.description())
413413
.withTag("details", queryStart.details())
414+
.withTag("_dd.spark.physical_plan", queryStart.physicalPlanDescription())
414415
.withTag(DDTags.RESOURCE_NAME, queryStart.description());
415416

416417
if (batchKey != null) {

0 commit comments

Comments
 (0)