File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
gax-java/gax/src/test/java/com/google/api/gax/tracing Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,16 @@ void testAddAttributes_recordsAttributes() {
228
228
assertThat (metricsTracer .getAttributes ().get ("FakeTableId" )).isEqualTo ("12345" );
229
229
}
230
230
231
+ @ Test
232
+ void testAddAttributes_recordsAttributes () {
233
+ Map <String , String > attributes = new HashMap <>();
234
+ attributes .put ("FakeTableId" , "12345" );
235
+ attributes .put ("FakeInstanceId" , "67890" );
236
+ metricsTracer .addAttributes (attributes );
237
+ assertThat (metricsTracer .getAttributes ().get ("FakeTableId" )).isEqualTo ("12345" );
238
+ assertThat (metricsTracer .getAttributes ().get ("FakeInstanceId" )).isEqualTo ("67890" );
239
+ }
240
+
231
241
@ Test
232
242
void testExtractStatus_errorConversion_apiExceptions () {
233
243
ApiException error =
You can’t perform that action at this time.
0 commit comments