diff --git a/core/trino-main/src/main/java/io/trino/split/SplitManager.java b/core/trino-main/src/main/java/io/trino/split/SplitManager.java index e6e61b27d11f..c35bfa05debd 100644 --- a/core/trino-main/src/main/java/io/trino/split/SplitManager.java +++ b/core/trino-main/src/main/java/io/trino/split/SplitManager.java @@ -132,10 +132,10 @@ public SplitSource getSplits(Session session, Span parentSpan, TableFunctionHand return new TracingSplitSource(splitSource, tracer, Optional.of(span), "split-buffer"); } - private Span splitSourceSpan(Span querySpan, CatalogHandle catalogHandle) + private Span splitSourceSpan(Span parentSpan, CatalogHandle catalogHandle) { return tracer.spanBuilder("split-source") - .setParent(Context.current().with(querySpan)) + .setParent(Context.current().with(parentSpan)) .setAttribute(TrinoAttributes.CATALOG, catalogHandle.getCatalogName()) .startSpan(); }