This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google-cloud-spanner/src/test/java/com/google/cloud/spanner/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,14 +51,13 @@ public class ITBuiltInMetricsTest {
5151
5252 private static MetricServiceClient metricClient ;
5353
54- private static final String [] METRICS = {
55- "operation_latencies" ,
56- "attempt_latencies" ,
57- "operation_count" ,
58- "attempt_count" ,
59- "gfe_latencies" ,
60- "afe_latencies"
61- };
54+ private static java .util .List <String > METRICS = new java .util .ArrayList <String >() {{
55+ add ("operation_latencies" );
56+ add ("attempt_latencies" );
57+ add ("operation_count" );
58+ add ("attempt_count" );
59+ add ("afe_latencies" );
60+ }};
6261
6362 @ BeforeClass
6463 public static void setUp () throws IOException {
@@ -67,6 +66,9 @@ public static void setUp() throws IOException {
6766 // Enable BuiltinMetrics when the metrics are GA'ed
6867 db = env .getTestHelper ().createTestDatabase ();
6968 client = env .getTestHelper ().getDatabaseClient (db );
69+ if (!env .getTestHelper ().getOptions ().isEnableDirectAccess ()) {
70+ METRICS .add ("gfe_latencies" );
71+ }
7072 }
7173
7274 @ After
You can’t perform that action at this time.
0 commit comments