func Client(address string, conn net.Conn) []attribute.KeyValue
Client returns trace attributes for a client network connection to address. See net.Dial for information about acceptable address values, address should be the same as the one used to create conn. If conn is nil, only network peer attributes will be returned that describe address. Otherwise, the socket level information about conn will also be included.
func Server(address string, ln net.Listener) []attribute.KeyValue
Server returns trace attributes for a network listener listening at address. See net.Listen for information about acceptable address values, address should be the same as the one used to create ln. If ln is nil, only network host attributes will be returned that describe address. Otherwise, the socket level information about ln will also be included.
func Transport(network string) attribute.KeyValue
Transport returns a trace attribute describing the transport protocol of the passed network. See the net.Dial for information about acceptable network values.