grpc-swift icon indicating copy to clipboard operation
grpc-swift copied to clipboard

How to find out the connection establishment time

Open MRSorokinMaxim opened this issue 9 months ago • 2 comments

If i need to measure the time taken for a rpc connection over TLS, i may need to track connection establishment time, handshake duration, and request latency. Are there specific recommended for this, and how can they be implemented in practice? How can this be done technically?

MRSorokinMaxim avatar Feb 19 '25 16:02 MRSorokinMaxim

Hi, thanks for filing this issue. First of all, are you using v1 or v2?

Getting this information from gRPC isn't currently possible. It's possible for us to get this information and expose it but designing the right API here quires some consideration.

glbrntt avatar Feb 24 '25 17:02 glbrntt

Thanks for your reply! We are using v1. But we will be upgrading to v2 in the future.

It’s really important for us to get insights into connection establishment time, handshake duration, and request latency. This would help us better analyze the performance of RPC connections over TLS. It would be great if such functionality could be added.

MRSorokinMaxim avatar Feb 26 '25 14:02 MRSorokinMaxim