Net Attributes

15 attributes in this category.15 deprecated

15 attributes

Deprecated Attributes

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

net.host.ipDeprecated

stringScrub: ManualVisibility: PublicOTel: True

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

Example192.168.0.1

Use network.local.address instead.

Status: backfill

Changelog
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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "192.168.0.1",
  "deprecation": {
    "replacement": "network.local.address",
    "_status": "backfill"
  },
  "alias": [
    "network.local.address",
    "net.sock.host.addr"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.host.nameDeprecated

stringScrub: ManualVisibility: PublicOTel: True

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

Changelog
nextAdded net.peer.name as an alias
v0.19.0#534Added address as an alias
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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "example.com",
  "deprecation": {
    "replacement": "server.address",
    "_status": "backfill"
  },
  "alias": [
    "address",
    "server.address",
    "http.server_name",
    "http.host",
    "server_name",
    "net.peer.name"
  ],
  "changelog": [
    {
      "version": "next",
      "description": "Added net.peer.name as an alias"
    },
    {
      "version": "0.19.0",
      "prs": [
        534
      ],
      "description": "Added address as an alias"
    },
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.host.portDeprecated

integerScrub: ManualVisibility: PublicOTel: True

Server port number.

Example1337

Use server.port instead.

Status: backfill

Changelog
v0.19.0#532Added port as an alias
v0.4.0#228
v0.1.0#61
v0.0.0
Raw JSON
{
  "key": "net.host.port",
  "brief": "Server port number.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": 1337,
  "deprecation": {
    "replacement": "server.port",
    "_status": "backfill"
  },
  "alias": [
    "server.port",
    "port"
  ],
  "changelog": [
    {
      "version": "0.19.0",
      "prs": [
        532
      ],
      "description": "Added port as an alias"
    },
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        61
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.peer.ipDeprecated

stringScrub: AutoVisibility: PublicOTel: True

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

Example192.168.0.1

Use network.peer.address instead.

Status: backfill

Changelog
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",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "192.168.0.1",
  "deprecation": {
    "replacement": "network.peer.address",
    "_status": "backfill"
  },
  "alias": [
    "network.peer.address",
    "net.sock.peer.addr"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.peer.nameDeprecated

stringScrub: AutoVisibility: PublicOTel: True

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

Exampleexample.com

Use server.address instead.

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

Changelog
nextAdded the server.address alias group to net.peer.name
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",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "example.com",
  "deprecation": {
    "replacement": "server.address",
    "reason": "Deprecated, use server.address on client spans and client.address on server spans.",
    "_status": null
  },
  "alias": [
    "address",
    "server.address",
    "http.server_name",
    "net.host.name",
    "http.host",
    "server_name"
  ],
  "changelog": [
    {
      "version": "next",
      "description": "Added the server.address alias group to net.peer.name"
    },
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.peer.portDeprecated

integerScrub: ManualVisibility: PublicOTel: True

Peer port number.

Example1337

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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "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.nameDeprecated

stringScrub: ManualVisibility: PublicOTel: True

OSI application layer or non-OSI equivalent.

Changelog
nextAdded messaging.protocol as an alias
v0.1.0#61#127
v0.0.0
Raw JSON
{
  "key": "net.protocol.name",
  "brief": "OSI application layer or non-OSI equivalent.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "http",
  "deprecation": {
    "replacement": "network.protocol.name",
    "_status": "backfill"
  },
  "alias": [
    "network.protocol.name",
    "mcp.resource.protocol",
    "messaging.protocol"
  ],
  "changelog": [
    {
      "version": "next",
      "description": "Added messaging.protocol as an alias"
    },
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.protocol.versionDeprecated

stringScrub: ManualVisibility: PublicOTel: True

The actual version of the protocol used for network communication.

Changelog
nextAdded messaging.protocol_version as an alias
v0.0.0
Raw JSON
{
  "key": "net.protocol.version",
  "brief": "The actual version of the protocol used for network communication.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "1.1",
  "deprecation": {
    "replacement": "network.protocol.version",
    "_status": "backfill"
  },
  "alias": [
    "network.protocol.version",
    "http.flavor",
    "messaging.protocol_version"
  ],
  "changelog": [
    {
      "version": "next",
      "description": "Added messaging.protocol_version as an alias"
    },
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.sock.familyDeprecated

stringScrub: ManualVisibility: PublicOTel: True

OSI transport and network layer

Exampleinet

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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "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.addrDeprecated

stringScrub: ManualVisibility: PublicOTel: True

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

Example/var/my.sock

Use network.local.address instead.

Status: backfill

Changelog
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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "/var/my.sock",
  "deprecation": {
    "replacement": "network.local.address",
    "_status": "backfill"
  },
  "alias": [
    "network.local.address",
    "net.host.ip"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.sock.host.portDeprecated

integerScrub: ManualVisibility: PublicOTel: True

Local port number of the network connection.

Example8080

Use network.local.port instead.

Status: backfill

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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": 8080,
  "deprecation": {
    "replacement": "network.local.port",
    "_status": "backfill"
  },
  "alias": [
    "network.local.port"
  ],
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        61
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.sock.peer.addrDeprecated

stringScrub: AutoVisibility: PublicOTel: True

Peer address of the network connection - IP address

Example192.168.0.1

Use network.peer.address instead.

Status: backfill

Changelog
v0.0.0
Raw JSON
{
  "key": "net.sock.peer.addr",
  "brief": "Peer address of the network connection - IP address",
  "type": "string",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "192.168.0.1",
  "deprecation": {
    "replacement": "network.peer.address",
    "_status": "backfill"
  },
  "alias": [
    "network.peer.address",
    "net.peer.ip"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        108,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.sock.peer.nameDeprecated

stringScrub: AutoVisibility: PublicOTel: 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.0.0
Raw JSON
{
  "key": "net.sock.peer.name",
  "brief": "Peer address of the network connection - Unix domain socket name",
  "type": "string",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": true,
  "visibility": "public",
  "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.portDeprecated

integerScrub: ManualVisibility: PublicOTel: True

Peer port number of the network connection.

Example8080

Use network.peer.port instead.

Status: backfill

Changelog
nextAdded network.peer.port as an alias
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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": 8080,
  "deprecation": {
    "replacement": "network.peer.port",
    "_status": "backfill"
  },
  "alias": [
    "network.peer.port"
  ],
  "changelog": [
    {
      "version": "next",
      "description": "Added network.peer.port as an alias"
    },
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.1.0",
      "prs": [
        61
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

net.transportDeprecated

stringScrub: ManualVisibility: PublicOTel: True

OSI transport layer or inter-process communication method.

Exampletcp

Use network.transport instead.

This attribute is being deprecated in favor of network.transport. The values change from ip_tcp and ip_udp to tcp and udp, so the old value cannot be copied over.

Changelog
nextSet net.transport to _status null, because its values change on the replacement
v0.1.0#61#127
v0.0.0
Raw JSON
{
  "key": "net.transport",
  "brief": "OSI transport layer or inter-process communication method.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "tcp",
  "deprecation": {
    "replacement": "network.transport",
    "reason": "This attribute is being deprecated in favor of network.transport. The values change from ip_tcp and ip_udp to tcp and udp, so the old value cannot be copied over.",
    "_status": null
  },
  "alias": [
    "network.transport",
    "mcp.transport"
  ],
  "changelog": [
    {
      "version": "next",
      "description": "Set net.transport to _status null, because its values change on the replacement"
    },
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}