Skip to content

Commit e195b5f

Browse files
authored
Remove duplicate span.end() causing log pollution. (#4497)
1 parent 0aab68a commit e195b5f

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,6 @@ public <T> T run(TransactionCallable<T> callable) {
12911291
// We also do this unconditionally in case a user has modified the flag when the transaction
12921292
// was running.
12931293
hasPendingTransaction.remove();
1294-
span.end();
12951294
}
12961295
}
12971296

@@ -2627,7 +2626,6 @@ public void close(@Nullable String message) {
26272626
if (stream != null) {
26282627
stream.close(message);
26292628
}
2630-
span.end();
26312629
}
26322630

26332631
@Override

0 commit comments

Comments
 (0)