From 506da6006ce06b699b928622a017a94653322eab Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Thu, 21 Dec 2023 11:34:35 +0100 Subject: [PATCH] Rename parameter in helper method The parameter refers to "a stage span", not to the top level "query span". --- .../trino-main/src/main/java/io/trino/split/SplitManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }