@@ -167,19 +167,14 @@ public void testExecuteUpdate() {
167
167
assertEquals (CompletableResultCode .ofSuccess (), spanExporter .flush ());
168
168
List <SpanData > spans = spanExporter .getFinishedSpanItems ();
169
169
assertContains ("CloudSpanner.ReadWriteTransaction" , spans );
170
- // TODO: Enable the following line when tracing of update statements in the Java client has
171
- // been added.
172
- // assertContains("CloudSpannerOperation.ExecuteUpdate", spans);
170
+ assertContains ("CloudSpannerOperation.ExecuteUpdate" , spans );
173
171
assertContains ("CloudSpannerOperation.Commit" , spans );
174
172
assertContains ("Spanner.ExecuteSql" , spans );
175
173
assertContains ("Spanner.Commit" , spans );
176
174
177
- // TODO: Enable the following line when tracing of update statements in the Java client has
178
- // been added.
179
- // assertParent("CloudSpanner.ReadWriteTransaction", "CloudSpannerOperation.ExecuteUpdate",
180
- // spans);
175
+ assertParent ("CloudSpanner.ReadWriteTransaction" , "CloudSpannerOperation.ExecuteUpdate" , spans );
181
176
assertParent ("CloudSpanner.ReadWriteTransaction" , "CloudSpannerOperation.Commit" , spans );
182
- assertParent ("CloudSpanner.ReadWriteTransaction " , "Spanner.ExecuteSql" , spans );
177
+ assertParent ("CloudSpannerOperation.ExecuteUpdate " , "Spanner.ExecuteSql" , spans );
183
178
}
184
179
185
180
@ Test
@@ -194,18 +189,13 @@ public void testBatchUpdate() {
194
189
assertEquals (CompletableResultCode .ofSuccess (), spanExporter .flush ());
195
190
List <SpanData > spans = spanExporter .getFinishedSpanItems ();
196
191
assertContains ("CloudSpanner.ReadWriteTransaction" , spans );
197
- // TODO: Enable the following line when tracing of update statements in the Java client has
198
- // been added.
199
- // assertContains("CloudSpannerOperation.BatchUpdate", spans);
192
+ assertContains ("CloudSpannerOperation.BatchUpdate" , spans );
200
193
assertContains ("CloudSpannerOperation.Commit" , spans );
201
194
assertContains ("Spanner.ExecuteBatchDml" , spans );
202
195
assertContains ("Spanner.Commit" , spans );
203
- // TODO: Enable the following line when tracing of update statements in the Java client has
204
- // been added.
205
- // assertParent("CloudSpanner.ReadWriteTransaction", "CloudSpannerOperation.BatchUpdate",
206
- // spans);
196
+ assertParent ("CloudSpanner.ReadWriteTransaction" , "CloudSpannerOperation.BatchUpdate" , spans );
207
197
assertParent ("CloudSpanner.ReadWriteTransaction" , "CloudSpannerOperation.Commit" , spans );
208
- assertParent ("CloudSpanner.ReadWriteTransaction " , "Spanner.ExecuteBatchDml" , spans );
198
+ assertParent ("CloudSpannerOperation.BatchUpdate " , "Spanner.ExecuteBatchDml" , spans );
209
199
assertParent ("CloudSpannerOperation.Commit" , "Spanner.Commit" , spans );
210
200
}
211
201
0 commit comments