Skip to content

Commit bc8adbf

Browse files
committed
Make the commit Span a child of the ReadContext Span.
1 parent e540552 commit bc8adbf

File tree

1 file changed

+1
-1
lines changed
  • google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner

1 file changed

+1
-1
lines changed

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
@@ -1426,7 +1426,7 @@ void commit() {
14261426
mutations = null;
14271427
}
14281428
final CommitRequest commitRequest = builder.build();
1429-
Span opSpan = tracer.spanBuilder(COMMIT).startSpan();
1429+
Span opSpan = tracer.spanBuilderWithExplicitParent(COMMIT, span).startSpan();
14301430
try (Scope s = tracer.withSpan(opSpan)) {
14311431
CommitResponse commitResponse =
14321432
runWithRetries(

0 commit comments

Comments
 (0)