You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -147,13 +147,9 @@ public void onNext(BatchGetDocumentsResponse response) {
147
147
148
148
numResponses++;
149
149
if (numResponses == 1) {
150
-
tracer
151
-
.getCurrentSpan()
152
-
.addAnnotation("Firestore.BatchGet: First response");
150
+
tracer.getCurrentSpan().addAnnotation("Firestore.BatchGet: First response");
153
151
} elseif (numResponses % 100 == 0) {
154
-
tracer
155
-
.getCurrentSpan()
156
-
.addAnnotation("Firestore.BatchGet: Received 100 responses");
152
+
tracer.getCurrentSpan().addAnnotation("Firestore.BatchGet: Received 100 responses");
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Query.java
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -924,7 +924,8 @@ private void stream(
924
924
request.setTransaction(transactionId);
925
925
}
926
926
927
-
Tracing.getTracer().getCurrentSpan()
927
+
Tracing.getTracer()
928
+
.getCurrentSpan()
928
929
.addAnnotation(
929
930
"Firestore.Query: Start",
930
931
ImmutableMap.of(
@@ -940,13 +941,13 @@ private void stream(
940
941
publicvoidonNext(RunQueryResponseresponse) {
941
942
if (!firstResponse) {
942
943
firstResponse = true;
943
-
Tracing.getTracer().getCurrentSpan()
944
-
.addAnnotation("Firestore.Query: First response");
944
+
Tracing.getTracer().getCurrentSpan().addAnnotation("Firestore.Query: First response");
945
945
}
946
946
if (response.hasDocument()) {
947
947
numDocuments++;
948
948
if (numDocuments % 100 == 0) {
949
-
Tracing.getTracer().getCurrentSpan()
949
+
Tracing.getTracer()
950
+
.getCurrentSpan()
950
951
.addAnnotation("Firestore.Query: Received 100 documents");
951
952
}
952
953
Documentdocument = response.getDocument();
@@ -970,12 +971,12 @@ public void onError(Throwable throwable) {
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UpdateBuilder.java
Copy file name to clipboardExpand all lines: branches/spanner-gapic-migration/google-cloud-firestore/src/test/java/com/google/cloud/firestore/QueryTest.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -536,16 +536,16 @@ public void getResult() throws Exception {
0 commit comments