Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit 05a25da

Browse files
Fix retry stat measures to match those in grpc-java exactly (#2097)
* update descriptions of retry measures to match those in grpc-java exactly * change GRPC_CLIENT_RETRY_DELAY_PER_CALL from MeasureLong to MeasureDouble
1 parent 2fe0274 commit 05a25da

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/RpcMeasureConstants.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public final class RpcMeasureConstants {
235235
*/
236236
public static final MeasureLong GRPC_CLIENT_RETRIES_PER_CALL =
237237
Measure.MeasureLong.create(
238-
"grpc.io/client/retries_per_call", "Number of retries per call.", COUNT);
238+
"grpc.io/client/retries_per_call", "Number of retries per call", COUNT);
239239

240240
/**
241241
* {@link Measure} for total number of transparent retries made during the client call.
@@ -244,19 +244,17 @@ public final class RpcMeasureConstants {
244244
*/
245245
public static final MeasureLong GRPC_CLIENT_TRANSPARENT_RETRIES_PER_CALL =
246246
Measure.MeasureLong.create(
247-
"grpc.io/client/transparent_retries_per_call",
248-
"Number of transparent retries per call.",
249-
COUNT);
247+
"grpc.io/client/transparent_retries_per_call", "Transparent retries per call", COUNT);
250248

251249
/**
252250
* {@link Measure} for total time of delay while there is no active attempt during the client
253251
* call.
254252
*
255253
* @since 0.28
256254
*/
257-
public static final MeasureLong GRPC_CLIENT_RETRY_DELAY_PER_CALL =
258-
Measure.MeasureLong.create(
259-
"grpc.io/client/retry_delay_per_call", "Retry delay per call.", MILLISECOND);
255+
public static final MeasureDouble GRPC_CLIENT_RETRY_DELAY_PER_CALL =
256+
Measure.MeasureDouble.create(
257+
"grpc.io/client/retry_delay_per_call", "Retry delay per call", MILLISECOND);
260258

261259
/**
262260
* {@link Measure} for gRPC client error counts.

0 commit comments

Comments
 (0)