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

Commit 8e242ed

Browse files
Comment on GRPC latency measure reuse (#1217)
1 parent 5fa069b commit 8e242ed

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

plugin/ocgrpc/client_metrics.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ var (
6060
Aggregation: DefaultMillisecondsDistribution,
6161
}
6262

63+
// Purposely reuses the count from `ClientRoundtripLatency`, tagging
64+
// with method and status to result in ClientCompletedRpcs.
6365
ClientCompletedRPCsView = &view.View{
6466
Measure: ClientRoundtripLatency,
6567
Name: "grpc.io/client/completed_rpcs",

plugin/ocgrpc/server_metrics.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ var (
6363
Aggregation: DefaultMillisecondsDistribution,
6464
}
6565

66+
// Purposely reuses the count from `ServerLatency`, tagging
67+
// with method and status to result in ServerCompletedRpcs.
6668
ServerCompletedRPCsView = &view.View{
6769
Name: "grpc.io/server/completed_rpcs",
6870
Description: "Count of RPCs by method and status.",

0 commit comments

Comments
 (0)