1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-08-06 22:12:48 +02:00

feat: enable opentelemetry support in protocol

This commit is contained in:
Vladimir Mihailenco
2022-05-18 16:23:57 +03:00
parent 2b6746025b
commit 76504b2778
8 changed files with 183 additions and 70 deletions

View File

@ -45,6 +45,10 @@ func (cn *Conn) SetUsedAt(tm time.Time) {
atomic.StoreInt64(&cn.usedAt, tm.Unix())
}
func (cn *Conn) LocalAddr() net.Addr {
return cn.netConn.LocalAddr()
}
func (cn *Conn) RemoteAddr() net.Addr {
return cn.netConn.RemoteAddr()
}