fix clirr · googleapis/java-spanner@c3b452a · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit c3b452a

Browse files
committed
fix clirr
1 parent 448061e commit c3b452a

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/CompositeTracer.java

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,11 @@ public void addAttributes(Map<String, String> attributes) {
191191
}
192192
}
193193

194-
public void recordGFELatency(Float gfeLatency) {
194+
@Deprecated
195+
public void recordGFELatency(Long gfeLatency) {
195196
for (ApiTracer child : children) {
196197
if (child instanceof BuiltInMetricsTracer) {
197-
((BuiltInMetricsTracer) child).recordGFELatency(gfeLatency);
198+
((BuiltInMetricsTracer) child).recordGFELatency(Float.valueOf(gfeLatency));
198199
}
199200
}
200201
}
@@ -207,10 +208,11 @@ public void recordGfeHeaderMissingCount(Long value) {
207208
}
208209
}
209210

210-
public void recordAFELatency(Float afeLatency) {
211+
@Deprecated
212+
public void recordAFELatency(Long afeLatency) {
211213
for (ApiTracer child : children) {
212214
if (child instanceof BuiltInMetricsTracer) {
213-
((BuiltInMetricsTracer) child).recordAFELatency(afeLatency);
215+
((BuiltInMetricsTracer) child).recordAFELatency(Float.valueOf(afeLatency));
214216
}
215217
}
216218
}
@@ -222,4 +224,20 @@ public void recordAfeHeaderMissingCount(Long value) {
222224
}
223225
}
224226
}
227+
228+
public void recordGFELatency(Float gfeLatency) {
229+
for (ApiTracer child : children) {
230+
if (child instanceof BuiltInMetricsTracer) {
231+
((BuiltInMetricsTracer) child).recordGFELatency(gfeLatency);
232+
}
233+
}
234+
}
235+
236+
public void recordAFELatency(Float afeLatency) {
237+
for (ApiTracer child : children) {
238+
if (child instanceof BuiltInMetricsTracer) {
239+
((BuiltInMetricsTracer) child).recordAFELatency(afeLatency);
240+
}
241+
}
242+
}
225243
}

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.