CanonicalTarget returns the canonical target string used when creating cc. This always has the form "<scheme>://[authority]/<endpoint>". For example: - "dns:///example.com:42" - "dns://8.8.8.8/example.com:42" - "unix:///path/to/socket"
()
| 960 | // - "dns://8.8.8.8/example.com:42" |
| 961 | // - "unix:///path/to/socket" |
| 962 | func (cc *ClientConn) CanonicalTarget() string { |
| 963 | return cc.parsedTarget.String() |
| 964 | } |
| 965 | |
| 966 | func (cc *ClientConn) incrCallsStarted() { |
| 967 | cc.channelz.ChannelMetrics.CallsStarted.Add(1) |