Network

Network Attributes

These attributes may be used for any network related operation.

Attributes:

KeyStabilityValue TypeDescriptionExample Values
network.carrier.iccDevelopmentstringThe ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network.DE
network.carrier.mccDevelopmentstringThe mobile carrier country code.310
network.carrier.mncDevelopmentstringThe mobile carrier network code.001
network.carrier.nameDevelopmentstringThe name of the mobile carrier.sprint
network.connection.stateDevelopmentstringThe state of network connection [1]close_wait
network.connection.subtypeDevelopmentstringThis describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection.LTE
network.connection.typeDevelopmentstringThe internet connection type.wifi
network.interface.nameDevelopmentstringThe network interface name.lo; eth0
network.io.directionDevelopmentstringThe network IO operation direction.transmit
network.local.addressStablestringLocal address of the network connection - IP address or Unix domain socket name.10.1.2.80; /tmp/my.sock
network.local.portStableintLocal port number of the network connection.65123
network.peer.addressStablestringPeer address of the network connection - IP address or Unix domain socket name.10.1.2.80; /tmp/my.sock
network.peer.portStableintPeer port number of the network connection.65123
network.protocol.nameStablestringOSI application layer or non-OSI equivalent. [2]amqp; http; mqtt
network.protocol.versionStablestringThe actual version of the protocol used for network communication. [3]1.1; 2
network.transportStablestringOSI transport layer or inter-process communication method. [4]tcp; udp
network.typeStablestringOSI network layer or non-OSI equivalent. [5]ipv4; ipv6

[1] network.connection.state: Connection states are defined as part of the rfc9293

[2] network.protocol.name: The value SHOULD be normalized to lowercase.

[3] network.protocol.version: If protocol version is subject to negotiation (for example using ALPN), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set.

[4] network.transport: The value SHOULD be normalized to lowercase.

Consider always setting the transport when setting a port number, since a port number is ambiguous without knowing the transport. For example different processes could be listening on TCP port 12345 and UDP port 12345.

[5] network.type: The value SHOULD be normalized to lowercase.


network.connection.state has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
close_waitclose_waitDevelopment
closedclosedDevelopment
closingclosingDevelopment
establishedestablishedDevelopment
fin_wait_1fin_wait_1Development
fin_wait_2fin_wait_2Development
last_acklast_ackDevelopment
listenlistenDevelopment
syn_receivedsyn_receivedDevelopment
syn_sentsyn_sentDevelopment
time_waittime_waitDevelopment

network.connection.subtype has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
cdmaCDMADevelopment
cdma2000_1xrttCDMA2000 1XRTTDevelopment
edgeEDGEDevelopment
ehrpdEHRPDDevelopment
evdo_0EVDO Rel. 0Development
evdo_aEVDO Rev. ADevelopment
evdo_bEVDO Rev. BDevelopment
gprsGPRSDevelopment
gsmGSMDevelopment
hsdpaHSDPADevelopment
hspaHSPADevelopment
hspapHSPAPDevelopment
hsupaHSUPADevelopment
idenIDENDevelopment
iwlanIWLANDevelopment
lteLTEDevelopment
lte_caLTE CADevelopment
nr5G NR (New Radio)Development
nrnsa5G NRNSA (New Radio Non-Standalone)Development
td_scdmaTD-SCDMADevelopment
umtsUMTSDevelopment

network.connection.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
cellcellDevelopment
unavailableunavailableDevelopment
unknownunknownDevelopment
wifiwifiDevelopment
wiredwiredDevelopment

network.io.direction has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
receivereceiveDevelopment
transmittransmitDevelopment

network.transport has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
pipeNamed or anonymous pipe.Stable
quicQUICStable
tcpTCPStable
udpUDPStable
unixUnix domain socketStable

network.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
ipv4IPv4Stable
ipv6IPv6Stable

Deprecated Network Attributes

These attributes may be used for any network related operation.

Attributes:

KeyStabilityValue TypeDescriptionExample Values
net.host.ipDeprecated
Replaced by network.local.address.
stringDeprecated, use network.local.address.192.168.0.1
net.host.nameDeprecated
Replaced by server.address.
stringDeprecated, use server.address.example.com
net.host.portDeprecated
Replaced by server.port.
intDeprecated, use server.port.8080
net.peer.ipDeprecated
Replaced by network.peer.address.
stringDeprecated, use network.peer.address.127.0.0.1
net.peer.nameDeprecated
Replaced by server.address on client spans and client.address on server spans.
stringDeprecated, use server.address on client spans and client.address on server spans.example.com
net.peer.portDeprecated
Replaced by server.port on client spans and client.port on server spans.
intDeprecated, use server.port on client spans and client.port on server spans.8080
net.protocol.nameDeprecated
Replaced by network.protocol.name.
stringDeprecated, use network.protocol.name.amqp; http; mqtt
net.protocol.versionDeprecated
Replaced by network.protocol.version.
stringDeprecated, use network.protocol.version.3.1.1
net.sock.familyDeprecated
Split to network.transport and network.type.
stringDeprecated, use network.transport and network.type.inet; inet6; unix
net.sock.host.addrDeprecated
Replaced by network.local.address.
stringDeprecated, use network.local.address./var/my.sock
net.sock.host.portDeprecated
Replaced by network.local.port.
intDeprecated, use network.local.port.8080
net.sock.peer.addrDeprecated
Replaced by network.peer.address.
stringDeprecated, use network.peer.address.192.168.0.1
net.sock.peer.nameDeprecated
Removed. No replacement at this time.
stringDeprecated, no replacement at this time./var/my.sock
net.sock.peer.portDeprecated
Replaced by network.peer.port.
intDeprecated, use network.peer.port.65531
net.transportDeprecated
Replaced by network.transport.
stringDeprecated, use network.transport.ip_tcp; ip_udp; pipe

net.sock.family has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
inetIPv4 addressDevelopment
inet6IPv6 addressDevelopment
unixUnix domain socket pathDevelopment

net.transport has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
inprocIn-process communication. [6]Development
ip_tcpip_tcpDevelopment
ip_udpip_udpDevelopment
otherSomething else (non IP-based).Development
pipeNamed or anonymous pipe.Development

[6]: Signals that there is only in-process communication not using a “real” network protocol in cases where network attributes would normally be expected. Usually all other network attributes can be left out in that case.