tikv / grpc-rs

The gRPC library for Rust built on C Core library and futures
Apache License 2.0
1.81k stars 253 forks source link

add support to measure message delivery's time from the StreamingCallSink's #632

Open tonyxuqqi opened 1 year ago

tonyxuqqi commented 1 year ago

Is your feature request related to a problem? Please describe. It's hard to measure the message sent time from client perspective----the time between the call of start_send and server's reception of the message. The background is that when TiKV's commit log duration is high but TiKV's IO and raftstore seems normal, it's hard to tell if it's because of the caller (e.g. raftclient's) bug, or the network issue or grpc crate's buffering mechanism.

Describe the solution you'd like Provide some callback mechanism when the messages are sent in start_send.

Describe alternatives you've considered Provide the out of box grafana metrics

Additional context None