Skip to content

Commit 8285a8b

Browse files
committed
Make the commit Span a child of the ReadContext Span.
1 parent e77e26f commit 8285a8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner

google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ void commit() {
13981398
mutations = null;
13991399
}
14001400
final CommitRequest commitRequest = builder.build();
1401-
Span opSpan = tracer.spanBuilder(COMMIT).startSpan();
1401+
Span opSpan = tracer.spanBuilderWithExplicitParent(COMMIT, span).startSpan();
14021402
try (Scope s = tracer.withSpan(opSpan)) {
14031403
CommitResponse commitResponse =
14041404
runWithRetries(

0 commit comments

Comments
 (0)