File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
main/java/com/google/cloud/spanner/spi/v1
test/java/com/google/cloud/spanner Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -166,11 +166,11 @@ private void processHeader(
166166 if (serverTimingMetrics .containsKey (GFE_TIMING_HEADER )) {
167167 float gfeLatency = serverTimingMetrics .get (GFE_TIMING_HEADER );
168168
169- measureMap .put (SPANNER_GFE_LATENCY , (long )gfeLatency );
169+ measureMap .put (SPANNER_GFE_LATENCY , (long ) gfeLatency );
170170 measureMap .put (SPANNER_GFE_HEADER_MISSING_COUNT , 0L );
171171 measureMap .record (tagContext );
172172
173- spannerRpcMetrics .recordGfeLatency ((long )gfeLatency , attributes );
173+ spannerRpcMetrics .recordGfeLatency ((long ) gfeLatency , attributes );
174174 spannerRpcMetrics .recordGfeHeaderMissingCount (0L , attributes );
175175 if (compositeTracer != null ) {
176176 compositeTracer .recordGFELatency (gfeLatency );
Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ public void testMetricsSingleUseQuery() {
170170 MetricData operationLatencyMetricData =
171171 getMetricData (metricReader , BuiltInMetricsConstant .OPERATION_LATENCIES_NAME );
172172 assertNotNull (operationLatencyMetricData );
173- double operationLatencyValue = getAggregatedValue (operationLatencyMetricData , expectedAttributes );
173+ double operationLatencyValue =
174+ getAggregatedValue (operationLatencyMetricData , expectedAttributes );
174175 assertThat (operationLatencyValue ).isIn (Range .closed (MIN_LATENCY , elapsed ));
175176
176177 MetricData attemptLatencyMetricData =
You can’t perform that action at this time.
0 commit comments