package netconv
import "go.opentelemetry.io/otel/semconv/v1.18.0/netconv"
Package netconv provides OpenTelemetry network semantic conventions for tracing telemetry.
Index ¶
- func Client(address string, conn net.Conn) []attribute.KeyValue
- func Server(address string, ln net.Listener) []attribute.KeyValue
- func Transport(network string) attribute.KeyValue
Functions ¶
func Client ¶
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 ¶
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 ¶
Transport returns a trace attribute describing the transport protocol of the passed network. See the net.Dial for information about acceptable network values.
Source Files ¶
net.go
- Version
- v1.34.0 (latest)
- Published
- Jan 17, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 hours ago –
Tools for package owners.