File tree Expand file tree Collapse file tree
java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ public void testToBuilder() {
307307 assertNotEquals (original , newOptions );
308308 assertNotEquals (original .hashCode (), newOptions .hashCode ());
309309 }
310+
310311 @ Test
311312 public void builtInMetricsExport_isDisabledByDefault () {
312313 DatastoreOptions defaultOptions =
@@ -330,8 +331,7 @@ public void bothBackendsActive_recorderIsComposite() {
330331 .setExportBuiltinMetricsToGoogleCloudMonitoring (true )
331332 .build ())
332333 .build ();
333- String recorderClassName =
334- options .getMetricsRecorder ().getClass ().getSimpleName ();
334+ String recorderClassName = options .getMetricsRecorder ().getClass ().getSimpleName ();
335335 assertThat (recorderClassName ).isEqualTo ("CompositeDatastoreMetricsRecorder" );
336336 }
337337}
Original file line number Diff line number Diff line change 2121import static org .junit .Assume .assumeNotNull ;
2222
2323import com .google .cloud .TransportOptions ;
24+ import com .google .cloud .datastore .telemetry .TelemetryConstants ;
2425import com .google .cloud .grpc .GrpcTransportOptions ;
2526import com .google .cloud .http .HttpTransportOptions ;
26- import com .google .cloud .datastore .telemetry .TelemetryConstants ;
2727import io .opentelemetry .api .common .AttributeKey ;
2828import io .opentelemetry .sdk .OpenTelemetrySdk ;
2929import io .opentelemetry .sdk .metrics .SdkMeterProvider ;
3333import io .opentelemetry .sdk .metrics .data .PointData ;
3434import io .opentelemetry .sdk .testing .exporter .InMemoryMetricReader ;
3535import java .util .Arrays ;
36- import com .google .cloud .monitoring .v3 .MetricServiceClient ;
37- import com .google .monitoring .v3 .ListTimeSeriesRequest ;
38- import com .google .monitoring .v3 .TimeInterval ;
39- import com .google .api .gax .rpc .ApiException ;
40- import com .google .protobuf .Timestamp ;
4136import java .util .Collection ;
4237import java .util .Optional ;
4338import org .junit .After ;
@@ -396,5 +391,4 @@ private static boolean dataContainsStringAttribute(
396391 String actual = point .getAttributes ().get (AttributeKey .stringKey (attributeKey ));
397392 return expectedValue .equals (actual );
398393 }
399-
400394}
You can’t perform that action at this time.
0 commit comments