GetDialStartNs returns the time when the dial started (in nanoseconds since epoch). This is used to calculate the full connection creation time (TCP + handshake).
()
| 201 | // GetDialStartNs returns the time when the dial started (in nanoseconds since epoch). |
| 202 | // This is used to calculate the full connection creation time (TCP + handshake). |
| 203 | func (cn *Conn) GetDialStartNs() int64 { |
| 204 | return cn.dialStartNs.Load() |
| 205 | } |
| 206 | |
| 207 | // PoolName returns the name of the pool this connection belongs to. |
| 208 | // This is used for metrics to identify which pool a connection is from. |