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

Commit

Permalink
Comment on GRPC latency measure reuse (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
smhendrickson committed Jul 5, 2020
1 parent 5fa069b commit 8e242ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/ocgrpc/client_metrics.go
Expand Up @@ -60,6 +60,8 @@ var (
Aggregation: DefaultMillisecondsDistribution,
}

// Purposely reuses the count from `ClientRoundtripLatency`, tagging
// with method and status to result in ClientCompletedRpcs.
ClientCompletedRPCsView = &view.View{
Measure: ClientRoundtripLatency,
Name: "grpc.io/client/completed_rpcs",
Expand Down
2 changes: 2 additions & 0 deletions plugin/ocgrpc/server_metrics.go
Expand Up @@ -63,6 +63,8 @@ var (
Aggregation: DefaultMillisecondsDistribution,
}

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

0 comments on commit 8e242ed

Please sign in to comment.