Skip to content

Commit

Permalink
Update metrics/grpc_mw_client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Barshev <[email protected]>
  • Loading branch information
glebnaz and mike-barshev authored Nov 14, 2023
1 parent ed7b0fe commit baf138c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/grpc_mw_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ var metricsCollector = make(map[string]any)
// namespace here is a prefix for metrics name
//
// For every RPC it exports the following metrics:
// - client_grpc_request_count{method, code,from,to}
// - client_grpc_response_time{method,from,to}
// - client_grpc_request_count{method, code, from, to}
// - client_grpc_response_time{method, from, to}
// namespace here is a prefix for metrics name
func ClientMetricsUnaryInterceptor(from, to string) grpc.UnaryClientInterceptor {
const nameCounter = "client_grpc_request_count"
Expand Down

0 comments on commit baf138c

Please sign in to comment.