{"source":"semconv","version":"1.45.0","attribute":{"id":"network.peer.prefix","type":"string","stability":"development","brief":"The IP prefix associated with the peer IP address, in CIDR notation.","note":"> [!WARNING]\n>\n> This attribute may contain sensitive (PII) information. A `/32` IPv4 prefix\n> or `/128` IPv6 prefix preserves the complete endpoint IP address.\n> Using CIDR notation does not guarantee that the data is anonymous.\n\nThe value MUST be an IPv4 or IPv6 network prefix in CIDR notation, as defined in\n[RFC 4632](https://www.rfc-editor.org/rfc/rfc4632.html) for IPv4 and\n[RFC 4291](https://www.rfc-editor.org/rfc/rfc4291.html#section-2.3) for IPv6.\nIPv4 prefixes MUST use a dotted-decimal address followed by `/` and a decimal\nprefix length from 0 to 32. IPv6 prefixes MUST use the canonical address text\nrepresentation defined in [RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.html),\nfollowed by `/` and a decimal prefix length from 0 to 128. All host bits in\nthe address MUST be set to zero. The value MUST NOT contain a domain name,\nUNIX domain socket name, or IPv6 zone identifier.\n\nInstrumentation or Collector receivers that populate this attribute MUST\nconvert native representations, such as an address and subnet mask or an\naddress and prefix length, to equivalent CIDR notation before emitting it.\n\nThis attribute MAY be set whether or not `network.peer.address` is set. If\n`network.peer.address` is also set to an IP address, it MUST use the same IP version\nand be contained in this prefix.","examples":["192.0.2.0/24","2001:db8::/32"],"namespace":"network","definedIn":"model/network/registry.yaml","usedBy":[{"groupId":"network.peer","groupType":"attribute_group","requirementLevel":"opt_in"}]},"history":[{"version":"1.45.0","publishedAt":"2026-11-02T16:11:42Z","kind":"first-seen","detail":"Added as development.","severity":"informational"}],"replaces":[]}