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.

Changelog
v0.1.0 #61#108#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#108#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.host.port Deprecated

integer PII: Maybe OTel: True

Server port number.

Example 1337
Aliases server.port

Use server.port instead.

Changelog
v0.4.0 #228
v0.1.0 #61
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        61
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#108#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#127
v0.0.0
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
  },
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.4.0 #228
v0.1.0 #61
v0.0.0
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
  },
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        61
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#108#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#127
v0.0.0
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
  },
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#108#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.4.0 #228
v0.1.0 #61
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        61
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#108#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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

Changelog
v0.1.0 #61#119#127
v0.0.0
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
  },
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        119,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.sock.peer.port Deprecated

integer PII: Maybe OTel: True

Peer port number of the network connection.

Example 8080

Use network.peer.port instead.

Changelog
v0.4.0 #228
v0.1.0 #61
v0.0.0
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
  },
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        61
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

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.

Changelog
v0.1.0 #61#127
v0.0.0
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"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}