kubernetes/vendor/go.opentelemetry.io/otel/semconv/internal/v2/net.go

type NetConv

func (c *NetConv) Transport(network string) attribute.KeyValue {}

// Host returns attributes for a network host address.
func (c *NetConv) Host(address string) []attribute.KeyValue {}

// Server returns 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 (c *NetConv) Server(address string, ln net.Listener) []attribute.KeyValue {}

func (c *NetConv) HostName(name string) attribute.KeyValue {}

func (c *NetConv) HostPort(port int) attribute.KeyValue {}

// Client returns 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 (c *NetConv) Client(address string, conn net.Conn) []attribute.KeyValue {}

func family(network, address string) string {}

func nonZeroStr(strs ...string) int {}

func positiveInt(ints ...int) int {}

// Peer returns attributes for a network peer address.
func (c *NetConv) Peer(address string) []attribute.KeyValue {}

func (c *NetConv) PeerName(name string) attribute.KeyValue {}

func (c *NetConv) PeerPort(port int) attribute.KeyValue {}

func (c *NetConv) SockPeerAddr(addr string) attribute.KeyValue {}

func (c *NetConv) SockPeerPort(port int) attribute.KeyValue {}

// splitHostPort splits a network address hostport of the form "host",
// "host%zone", "[host]", "[host%zone], "host:port", "host%zone:port",
// "[host]:port", "[host%zone]:port", or ":port" into host or host%zone and
// port.
//
// An empty host is returned if it is not provided or unparsable. A negative
// port is returned if it is not provided or unparsable.
func splitHostPort(hostport string) (host string, port int) {}