You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: plugin/ocgrpc/client_metrics.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ var (
28
28
ClientReceivedMessagesPerRPC=stats.Int64("grpc.io/client/received_messages_per_rpc", "Number of response messages received per RPC (always 1 for non-streaming RPCs).", stats.UnitDimensionless)
29
29
ClientReceivedBytesPerRPC=stats.Int64("grpc.io/client/received_bytes_per_rpc", "Total bytes received across all response messages per RPC.", stats.UnitBytes)
30
30
ClientRoundtripLatency=stats.Float64("grpc.io/client/roundtrip_latency", "Time between first byte of request sent to last byte of response received, or terminal error.", stats.UnitMilliseconds)
31
+
ClientStartedRPCs=stats.Int64("grpc.io/client/started_rpcs", "Number of started client RPCs.", stats.UnitDimensionless)
31
32
ClientServerLatency=stats.Float64("grpc.io/client/server_latency", `Propagated from the server and should have the same value as "grpc.io/server/latency".`, stats.UnitMilliseconds)
Copy file name to clipboardExpand all lines: plugin/ocgrpc/server_metrics.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ var (
27
27
ServerReceivedBytesPerRPC=stats.Int64("grpc.io/server/received_bytes_per_rpc", "Total bytes received across all messages per RPC.", stats.UnitBytes)
28
28
ServerSentMessagesPerRPC=stats.Int64("grpc.io/server/sent_messages_per_rpc", "Number of messages sent in each RPC. Has value 1 for non-streaming RPCs.", stats.UnitDimensionless)
29
29
ServerSentBytesPerRPC=stats.Int64("grpc.io/server/sent_bytes_per_rpc", "Total bytes sent in across all response messages per RPC.", stats.UnitBytes)
30
+
ServerStartedRPCs=stats.Int64("grpc.io/server/started_rpcs", "Number of started server RPCs.", stats.UnitDimensionless)
30
31
ServerLatency=stats.Float64("grpc.io/server/server_latency", "Time between first byte of request received to last byte of response sent, or terminal error.", stats.UnitMilliseconds)
31
32
)
32
33
@@ -73,6 +74,14 @@ var (
73
74
Aggregation: view.Count(),
74
75
}
75
76
77
+
ServerStartedRPCsView=&view.View{
78
+
Measure: ServerStartedRPCs,
79
+
Name: "grpc.io/server/started_rpcs",
80
+
Description: "Number of started server RPCs.",
81
+
TagKeys: []tag.Key{KeyServerMethod},
82
+
Aggregation: view.Count(),
83
+
}
84
+
76
85
ServerReceivedMessagesPerRPCView=&view.View{
77
86
Name: "grpc.io/server/received_messages_per_rpc",
78
87
Description: "Distribution of messages received count per RPC, by method.",
0 commit comments