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.

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": null
  },
  "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
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": null
  },
  "alias": [
    "address",
    "server.address",
    "http.server_name",
    "http.host",
    "server_name"
  ],
  "changelog": [
    {
      "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.

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": null
  },
  "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.

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": null
  },
  "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
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
  },
  "changelog": [
    {
      "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
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": null
  },
  "alias": [
    "network.protocol.name",
    "mcp.resource.protocol"
  ],
  "changelog": [
    {
      "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
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": null
  },
  "alias": [
    "network.protocol.version",
    "http.flavor"
  ],
  "changelog": [
    {
      "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
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": null
  },
  "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.

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": 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.addrDeprecated

stringScrub: AutoVisibility: PublicOTel: True

Peer address of the network connection - IP address

Example192.168.0.1
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": null
  },
  "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.

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

stringScrub: ManualVisibility: PublicOTel: True

OSI transport layer or inter-process communication method.

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",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": true,
  "visibility": "public",
  "example": "tcp",
  "deprecation": {
    "replacement": "network.transport",
    "_status": null
  },
  "alias": [
    "network.transport",
    "mcp.transport"
  ],
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        61,
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}