Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

source.prefix

Developmentstringas of v1.45.0

The IP prefix associated with the source IP address, in CIDR notation.

> [!WARNING] > > This attribute may contain sensitive (PII) information. A /32 IPv4 prefix > or /128 IPv6 prefix preserves the complete endpoint IP address. > Using CIDR notation does not guarantee that the data is anonymous.

The value MUST be an IPv4 or IPv6 network prefix in CIDR notation, as defined in RFC 4632 for IPv4 and RFC 4291 for IPv6. IPv4 prefixes MUST use a dotted-decimal address followed by / and a decimal prefix length from 0 to 32. IPv6 prefixes MUST use the canonical address text representation defined in RFC 5952, followed by / and a decimal prefix length from 0 to 128. All host bits in the address MUST be set to zero. The value MUST NOT contain a domain name, UNIX domain socket name, or IPv6 zone identifier.

Instrumentation or Collector receivers that populate this attribute MUST convert native representations, such as an address and subnet mask or an address and prefix length, to equivalent CIDR notation before emitting it.

This attribute MAY be set whether or not source.address is set. If source.address is also set to an IP address, it MUST use the same IP version and be contained in this prefix.

Examples

  • 192.0.2.0/24
  • 2001:db8::/32

History

  1. v1.45.0

    Added as development.

Definition sourceRegistry docsJSONUse with your agent →