View Source OpenTelemetry.SemConv.Incubating.NetworkAttributes (OpenTelemetry.SemConv v1.27.0)
OpenTelemetry Semantic Conventions for Network attributes.
Summary
Types
Deprecated, use network.transport
and network.type
.
Deprecated, use network.transport
.
This 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.
The internet connection type.
The network IO operation direction.
Functions
The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network.
The mobile carrier country code.
The mobile carrier network code.
The name of the mobile carrier.
This 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.
The internet connection type.
The network IO operation direction.
Types
@type net_sock_family_values() :: %{inet: :inet, inet6: :inet6, unix: :unix}
Deprecated, use network.transport
and network.type
.
Enum Values
@type net_transport_values() :: %{
ip_tcp: :ip_tcp,
ip_udp: :ip_udp,
pipe: :pipe,
inproc: :inproc,
other: :other
}
Deprecated, use network.transport
.
Enum Values
@type network_connection_subtype_values() :: %{
gprs: :gprs,
edge: :edge,
umts: :umts,
cdma: :cdma,
evdo_0: :evdo_0,
evdo_a: :evdo_a,
cdma2000_1xrtt: :cdma2000_1xrtt,
hsdpa: :hsdpa,
hsupa: :hsupa,
hspa: :hspa,
iden: :iden,
evdo_b: :evdo_b,
lte: :lte,
ehrpd: :ehrpd,
hspap: :hspap,
gsm: :gsm,
td_scdma: :td_scdma,
iwlan: :iwlan,
nr: :nr,
nrnsa: :nrnsa,
lte_ca: :lte_ca
}
This 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.
Enum Values
:gprs
e - GPRS:edge
e - EDGE:umts
e - UMTS:cdma
e - CDMA:evdo_0
e - EVDO Rel. 0:evdo_a
e - EVDO Rev. A:cdma2000_1xrtt
e - CDMA2000 1XRTT:hsdpa
e - HSDPA:hsupa
e - HSUPA:hspa
e - HSPA:iden
e - IDEN:evdo_b
e - EVDO Rev. B:lte
e - LTE:ehrpd
e - EHRPD:hspap
e - HSPAP:gsm
e - GSM:td_scdma
e - TD-SCDMA:iwlan
e - IWLAN:nr
e - 5G NR (New Radio):nrnsa
e - 5G NRNSA (New Radio Non-Standalone):lte_ca
e - LTE CA
@type network_connection_type_values() :: %{
wifi: :wifi,
wired: :wired,
cell: :cell,
unavailable: :unavailable,
unknown: :unknown
}
The internet connection type.
Enum Values
@type network_io_direction_values() :: %{transmit: :transmit, receive: :receive}
The network IO operation direction.
Enum Values
Functions
@spec net_host_ip() :: :"net.host.ip"
@spec net_host_name() :: :"net.host.name"
@spec net_host_port() :: :"net.host.port"
@spec net_peer_ip() :: :"net.peer.ip"
@spec net_peer_name() :: :"net.peer.name"
@spec net_peer_port() :: :"net.peer.port"
@spec net_protocol_name() :: :"net.protocol.name"
@spec net_protocol_version() :: :"net.protocol.version"
@spec net_sock_family() :: :"net.sock.family"
@spec net_sock_family_values() :: net_sock_family_values()
@spec net_sock_host_addr() :: :"net.sock.host.addr"
@spec net_sock_host_port() :: :"net.sock.host.port"
@spec net_sock_peer_addr() :: :"net.sock.peer.addr"
@spec net_sock_peer_name() :: :"net.sock.peer.name"
@spec net_sock_peer_port() :: :"net.sock.peer.port"
@spec net_transport() :: :"net.transport"
@spec net_transport_values() :: net_transport_values()
@spec network_carrier_icc() :: :"network.carrier.icc"
The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network.
Value type
Value must be of type atom() | String.t()
.
Examples
DE
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_icc()
:"network.carrier.icc"
?NETWORK_CARRIER_ICC.
'network.carrier.icc'
@spec network_carrier_mcc() :: :"network.carrier.mcc"
The mobile carrier country code.
Value type
Value must be of type atom() | String.t()
.
Examples
310
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_mcc()
:"network.carrier.mcc"
?NETWORK_CARRIER_MCC.
'network.carrier.mcc'
@spec network_carrier_mnc() :: :"network.carrier.mnc"
The mobile carrier network code.
Value type
Value must be of type atom() | String.t()
.
Examples
001
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_mnc()
:"network.carrier.mnc"
?NETWORK_CARRIER_MNC.
'network.carrier.mnc'
@spec network_carrier_name() :: :"network.carrier.name"
The name of the mobile carrier.
Value type
Value must be of type atom() | String.t()
.
Examples
sprint
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_name()
:"network.carrier.name"
?NETWORK_CARRIER_NAME.
'network.carrier.name'
@spec network_connection_subtype() :: :"network.connection.subtype"
This 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.
Examples
LTE
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype()
:"network.connection.subtype"
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values().gprs
:gprs
iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values().gprs}
%{:"network.connection.subtype" => :gprs}
?NETWORK_CONNECTION_SUBTYPE.
'network.connection.subtype'
?NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS.
'gprs'
#{?NETWORK_CONNECTION_SUBTYPE => ?NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS}.
#{'network.connection.subtype' => 'gprs'}
@spec network_connection_subtype_values() :: network_connection_subtype_values()
@spec network_connection_type() :: :"network.connection.type"
The internet connection type.
Examples
wifi
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type()
:"network.connection.type"
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values().wifi
:wifi
iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values().wifi}
%{:"network.connection.type" => :wifi}
?NETWORK_CONNECTION_TYPE.
'network.connection.type'
?NETWORK_CONNECTION_TYPE_VALUES_WIFI.
'wifi'
#{?NETWORK_CONNECTION_TYPE => ?NETWORK_CONNECTION_TYPE_VALUES_WIFI}.
#{'network.connection.type' => 'wifi'}
@spec network_connection_type_values() :: network_connection_type_values()
@spec network_io_direction() :: :"network.io.direction"
The network IO operation direction.
Examples
["transmit"]
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction()
:"network.io.direction"
iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values().transmit
:transmit
iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values().transmit}
%{:"network.io.direction" => :transmit}
?NETWORK_IO_DIRECTION.
'network.io.direction'
?NETWORK_IO_DIRECTION_VALUES_TRANSMIT.
'transmit'
#{?NETWORK_IO_DIRECTION => ?NETWORK_IO_DIRECTION_VALUES_TRANSMIT}.
#{'network.io.direction' => 'transmit'}
@spec network_io_direction_values() :: network_io_direction_values()
See OpenTelemetry.SemConv.NetworkAttributes.network_local_address/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_local_port/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_peer_address/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_peer_port/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_protocol_name/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_protocol_version/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_transport/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_transport_values/0
.
See OpenTelemetry.SemConv.NetworkAttributes.network_type_values/0
.