Net Attributes

15 attributes in this category. 15 deprecated

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

net.host.ip Deprecated

string PII: Maybe OTel: True

Local address of the network connection - IP address or Unix domain socket name.

Example 192.168.0.1
Aliases network.local.addressnet.sock.host.addr

Use network.local.address instead.

Raw JSON
{
  "key": "net.host.ip",
  "brief": "Local address of the network connection - IP address or Unix domain socket name.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "192.168.0.1",
  "deprecation": {
    "replacement": "network.local.address",
    "_status": null
  },
  "alias": [
    "network.local.address",
    "net.sock.host.addr"
  ]
}

net.host.name Deprecated

string PII: Maybe OTel: True

Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.

Example example.com
Aliases server.addresshttp.server_namehttp.host

Use server.address instead.

Raw JSON
{
  "key": "net.host.name",
  "brief": "Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "example.com",
  "deprecation": {
    "replacement": "server.address",
    "_status": null
  },
  "alias": [
    "server.address",
    "http.server_name",
    "http.host"
  ]
}

net.host.port Deprecated

integer PII: Maybe OTel: True

Server port number.

Example 1337
Aliases server.port

Use server.port instead.

Raw JSON
{
  "key": "net.host.port",
  "brief": "Server port number.",
  "type": "integer",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": 1337,
  "deprecation": {
    "replacement": "server.port",
    "_status": null
  },
  "alias": [
    "server.port"
  ]
}

net.peer.ip Deprecated

string PII: Maybe OTel: True

Peer address of the network connection - IP address or Unix domain socket name.

Example 192.168.0.1
Aliases network.peer.addressnet.sock.peer.addr

Use network.peer.address instead.

Raw JSON
{
  "key": "net.peer.ip",
  "brief": "Peer address of the network connection - IP address or Unix domain socket name.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "192.168.0.1",
  "deprecation": {
    "replacement": "network.peer.address",
    "_status": null
  },
  "alias": [
    "network.peer.address",
    "net.sock.peer.addr"
  ]
}

net.peer.name Deprecated

string PII: Maybe OTel: True

Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.

Example example.com

Use server.address instead.

Deprecated, use server.address on client spans and client.address on server spans.

Raw JSON
{
  "key": "net.peer.name",
  "brief": "Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "example.com",
  "deprecation": {
    "replacement": "server.address",
    "reason": "Deprecated, use server.address on client spans and client.address on server spans.",
    "_status": null
  }
}

net.peer.port Deprecated

integer PII: Maybe OTel: True

Peer port number.

Example 1337

Use server.port instead.

Deprecated, use server.port on client spans and client.port on server spans.

Raw JSON
{
  "key": "net.peer.port",
  "brief": "Peer port number.",
  "type": "integer",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": 1337,
  "deprecation": {
    "replacement": "server.port",
    "reason": "Deprecated, use server.port on client spans and client.port on server spans.",
    "_status": null
  }
}

net.protocol.name Deprecated

string PII: Maybe OTel: True

OSI application layer or non-OSI equivalent.

Example http
Aliases network.protocol.name

Use network.protocol.name instead.

Raw JSON
{
  "key": "net.protocol.name",
  "brief": "OSI application layer or non-OSI equivalent.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "http",
  "deprecation": {
    "replacement": "network.protocol.name",
    "_status": null
  },
  "alias": [
    "network.protocol.name"
  ]
}

net.protocol.version Deprecated

string PII: Maybe OTel: True

The actual version of the protocol used for network communication.

Example 1.1
Aliases network.protocol.versionhttp.flavor

Use network.protocol.version instead.

Raw JSON
{
  "key": "net.protocol.version",
  "brief": "The actual version of the protocol used for network communication.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "1.1",
  "deprecation": {
    "replacement": "network.protocol.version",
    "_status": null
  },
  "alias": [
    "network.protocol.version",
    "http.flavor"
  ]
}

net.sock.family Deprecated

string PII: Maybe OTel: True

OSI transport and network layer

Example inet

Use network.transport instead.

Deprecated, use network.transport and network.type.

Raw JSON
{
  "key": "net.sock.family",
  "brief": "OSI transport and network layer",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "inet",
  "deprecation": {
    "replacement": "network.transport",
    "reason": "Deprecated, use network.transport and network.type.",
    "_status": null
  }
}

net.sock.host.addr Deprecated

string PII: Maybe OTel: True

Local address of the network connection mapping to Unix domain socket name.

Example /var/my.sock
Aliases network.local.addressnet.host.ip

Use network.local.address instead.

Raw JSON
{
  "key": "net.sock.host.addr",
  "brief": "Local address of the network connection mapping to Unix domain socket name.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "/var/my.sock",
  "deprecation": {
    "replacement": "network.local.address",
    "_status": null
  },
  "alias": [
    "network.local.address",
    "net.host.ip"
  ]
}

net.sock.host.port Deprecated

integer PII: Maybe OTel: True

Local port number of the network connection.

Example 8080
Aliases network.local.port

Use network.local.port instead.

Raw JSON
{
  "key": "net.sock.host.port",
  "brief": "Local port number of the network connection.",
  "type": "integer",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": 8080,
  "deprecation": {
    "replacement": "network.local.port",
    "_status": null
  },
  "alias": [
    "network.local.port"
  ]
}

net.sock.peer.addr Deprecated

string PII: Maybe OTel: True

Peer address of the network connection - IP address

Example 192.168.0.1
Aliases network.peer.addressnet.peer.ip

Use network.peer.address instead.

Raw JSON
{
  "key": "net.sock.peer.addr",
  "brief": "Peer address of the network connection - IP address",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "192.168.0.1",
  "deprecation": {
    "replacement": "network.peer.address",
    "_status": null
  },
  "alias": [
    "network.peer.address",
    "net.peer.ip"
  ]
}

net.sock.peer.name Deprecated

string PII: Maybe OTel: True

Peer address of the network connection - Unix domain socket name

Example /var/my.sock

No replacement available at this time.

Deprecated from OTEL, no replacement at this time

Raw JSON
{
  "key": "net.sock.peer.name",
  "brief": "Peer address of the network connection - Unix domain socket name",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "/var/my.sock",
  "deprecation": {
    "reason": "Deprecated from OTEL, no replacement at this time",
    "_status": null
  }
}

net.sock.peer.port Deprecated

integer PII: Maybe OTel: True

Peer port number of the network connection.

Example 8080

Use network.peer.port instead.

Raw JSON
{
  "key": "net.sock.peer.port",
  "brief": "Peer port number of the network connection.",
  "type": "integer",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": 8080,
  "deprecation": {
    "replacement": "network.peer.port",
    "_status": null
  }
}

net.transport Deprecated

string PII: Maybe OTel: True

OSI transport layer or inter-process communication method.

Example tcp
Aliases network.transport

Use network.transport instead.

Raw JSON
{
  "key": "net.transport",
  "brief": "OSI transport layer or inter-process communication method.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": true,
  "example": "tcp",
  "deprecation": {
    "replacement": "network.transport",
    "_status": null
  },
  "alias": [
    "network.transport"
  ]
}