Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 70a3694

Browse files
committed
fix
1 parent ea7a0a0 commit 70a3694

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/metrics/ChannelPoolMetricsTracer.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public void run() {
101101

102102
String lbPolicy = lbPolicyRef.get();
103103

104-
// Build the four permutations once per run to avoid allocations in the channel loop
105104
Attributes dpUnaryAttrs =
106105
Attributes.builder()
107106
.put("transport_type", "directpath")
@@ -133,13 +132,11 @@ public void run() {
133132

134133
long currentOutstandingUnaryRpcs = info.getOutstandingUnaryRpcs();
135134
long currentOutstandingStreamingRpcs = info.getOutstandingStreamingRpcs();
136-
137-
// Record outstanding RPCs with the transport_type, streaming, and lb_policy attributes
138135
outstandingRpcsHistogram.record(currentOutstandingUnaryRpcs, unaryAttrs);
139136
outstandingRpcsHistogram.record(currentOutstandingStreamingRpcs, streamingAttrs);
140137

141138
long errors = info.getAndResetErrorCount();
142-
// Record errors with empty attributes as requested
139+
// Record errors with empty attributes.
143140
perConnectionErrorCountHistogram.record(errors, Attributes.empty());
144141
}
145142
}

0 commit comments

Comments
 (0)