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

net_host_ip() deprecated
net_host_name() deprecated
net_host_port() deprecated
net_peer_ip() deprecated
net_peer_name() deprecated
net_peer_port() deprecated
net_protocol_name() deprecated
net_sock_family() deprecated
net_transport() deprecated

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

Link to this type

net_sock_family_values()

View Source
@type net_sock_family_values() :: %{inet: :inet, inet6: :inet6, unix: :unix}

Deprecated, use network.transport and network.type.

Enum Values

  • :inet e - IPv4 address
  • :inet6 e - IPv6 address
  • :unix e - Unix domain socket path
Link to this type

net_transport_values()

View Source
@type net_transport_values() :: %{
  ip_tcp: :ip_tcp,
  ip_udp: :ip_udp,
  pipe: :pipe,
  inproc: :inproc,
  other: :other
}

Deprecated, use network.transport.

Enum Values

  • :ip_tcp e
  • :ip_udp e
  • :pipe e - Named or anonymous pipe.
  • :inproc e - In-process communication.
  • :other e - Something else (non IP-based).
Link to this type

network_connection_subtype_values()

View Source
@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
Link to this type

network_connection_type_values()

View Source
@type network_connection_type_values() :: %{
  wifi: :wifi,
  wired: :wired,
  cell: :cell,
  unavailable: :unavailable,
  unknown: :unknown
}

The internet connection type.

Enum Values

  • :wifi e
  • :wired e
  • :cell e
  • :unavailable e
  • :unknown e
Link to this type

network_io_direction_values()

View Source
@type network_io_direction_values() :: %{transmit: :transmit, receive: :receive}

The network IO operation direction.

Enum Values

  • :transmit e
  • :receive e

Functions

This function is deprecated. Replaced by `network.local.address`. .
@spec net_host_ip() :: :"net.host.ip"
This function is deprecated. Replaced by `server.address`. .
@spec net_host_name() :: :"net.host.name"
This function is deprecated. Replaced by `server.port`. .
@spec net_host_port() :: :"net.host.port"
This function is deprecated. Replaced by `network.peer.address`. .
@spec net_peer_ip() :: :"net.peer.ip"
This function is deprecated. Replaced by `server.address` on client spans and `client.address` on server spans. .
@spec net_peer_name() :: :"net.peer.name"
This function is deprecated. Replaced by `server.port` on client spans and `client.port` on server spans. .
@spec net_peer_port() :: :"net.peer.port"
This function is deprecated. Replaced by `network.protocol.name`. .
@spec net_protocol_name() :: :"net.protocol.name"
This function is deprecated. Replaced by `network.protocol.version`. .
@spec net_protocol_version() :: :"net.protocol.version"
This function is deprecated. Split to `network.transport` and `network.type`. .
@spec net_sock_family() :: :"net.sock.family"
Link to this function

net_sock_family_values()

View Source
@spec net_sock_family_values() :: net_sock_family_values()
This function is deprecated. Replaced by `network.local.address`. .
@spec net_sock_host_addr() :: :"net.sock.host.addr"
This function is deprecated. Replaced by `network.local.port`. .
@spec net_sock_host_port() :: :"net.sock.host.port"
This function is deprecated. Replaced by `network.peer.address`. .
@spec net_sock_peer_addr() :: :"net.sock.peer.addr"
This function is deprecated. Removed. .
@spec net_sock_peer_name() :: :"net.sock.peer.name"
This function is deprecated. Replaced by `network.peer.port`. .
@spec net_sock_peer_port() :: :"net.sock.peer.port"
This function is deprecated. Replaced by `network.transport`. .
@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"
@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"
@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"
@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"
Link to this function

network_connection_subtype()

View Source
@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}
Link to this function

network_connection_subtype_values()

View Source
@spec network_connection_subtype_values() :: network_connection_subtype_values()
Link to this function

network_connection_type()

View Source
@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}
Link to this function

network_connection_type_values()

View Source
@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}
Link to this function

network_io_direction_values()

View Source
@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.

Link to this function

network_protocol_version()

View Source

See OpenTelemetry.SemConv.NetworkAttributes.network_protocol_version/0.

See OpenTelemetry.SemConv.NetworkAttributes.network_transport/0.

Link to this function

network_transport_values()

View Source

See OpenTelemetry.SemConv.NetworkAttributes.network_transport_values/0.

See OpenTelemetry.SemConv.NetworkAttributes.network_type/0.

See OpenTelemetry.SemConv.NetworkAttributes.network_type_values/0.