Make net.sock.host.port conditionally required (#3246)
This commit is contained in:
parent
6d7b233c80
commit
c9ff781e94
|
|
@ -106,7 +106,7 @@ groups:
|
|||
type: int
|
||||
brief: 'Local socket port number.'
|
||||
requirement_level:
|
||||
recommended: If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set.
|
||||
conditionally_required: If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set. In other cases, it is still recommended to set this.
|
||||
examples: 35555
|
||||
- id: host.connection.type
|
||||
type:
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ If the route cannot be determined, the `name` attribute MUST be set as defined i
|
|||
| [`net.host.name`](span-general.md) | string | Name of the local HTTP server that received the request. [3] | `localhost` | Required |
|
||||
| [`net.host.port`](span-general.md) | int | Port of the local HTTP server that received the request. [4] | `8080` | Conditionally Required: [5] |
|
||||
| [`net.sock.host.addr`](span-general.md) | string | Local socket address. Useful in case of a multi-IP host. | `192.168.0.1` | Opt-In |
|
||||
| [`net.sock.host.port`](span-general.md) | int | Local socket port number. | `35555` | Recommended: [6] |
|
||||
| [`net.sock.host.port`](span-general.md) | int | Local socket port number. | `35555` | Conditionally Required: [6] |
|
||||
|
||||
**[1]:** MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it.
|
||||
SHOULD include the [application root](/specification/trace/semantic_conventions/http.md#http-server-definitions) if there is one.
|
||||
|
|
@ -285,7 +285,7 @@ SHOULD NOT be set if only IP address is available and capturing name would requi
|
|||
|
||||
**[5]:** If not default (`80` for `http` scheme, `443` for `https`).
|
||||
|
||||
**[6]:** If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set.
|
||||
**[6]:** If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set. In other cases, it is still recommended to set this.
|
||||
|
||||
Following attributes MUST be provided **at span creation time** (when provided at all), so they can be considered for sampling decisions:
|
||||
|
||||
|
|
|
|||
|
|
@ -127,11 +127,11 @@ Generally, a user SHOULD NOT set `peer.service` to a fully qualified RPC service
|
|||
| [`net.host.name`](span-general.md) | string | Logical local hostname or similar, see note below. | `localhost` | Recommended |
|
||||
| [`net.sock.family`](span-general.md) | string | Protocol [address family](https://man7.org/linux/man-pages/man7/address_families.7.html) which is used for communication. | `inet6`; `bluetooth` | Conditionally Required: [1] |
|
||||
| [`net.sock.host.addr`](span-general.md) | string | Local socket address. Useful in case of a multi-IP host. | `192.168.0.1` | Recommended |
|
||||
| [`net.sock.host.port`](span-general.md) | int | Local socket port number. | `35555` | Recommended: [2] |
|
||||
| [`net.sock.host.port`](span-general.md) | int | Local socket port number. | `35555` | Conditionally Required: [2] |
|
||||
|
||||
**[1]:** If different than `inet` and if any of `net.sock.peer.addr` or `net.sock.host.addr` are set. Consumers of telemetry SHOULD accept both IPv4 and IPv6 formats for the address in `net.sock.peer.addr` if `net.sock.family` is not set. This is to support instrumentations that follow previous versions of this document.
|
||||
|
||||
**[2]:** If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set.
|
||||
**[2]:** If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set. In other cases, it is still recommended to set this.
|
||||
<!-- endsemconv -->
|
||||
|
||||
### Events
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ the `net.peer.*` properties of a client are equal to the `net.host.*` properties
|
|||
| `net.host.name` | string | Logical local hostname or similar, see note below. | `localhost` | Recommended |
|
||||
| `net.host.port` | int | Logical local port number, preferably the one that the peer used to connect | `8080` | Recommended |
|
||||
| `net.sock.host.addr` | string | Local socket address. Useful in case of a multi-IP host. | `192.168.0.1` | Recommended |
|
||||
| `net.sock.host.port` | int | Local socket port number. | `35555` | Recommended: [6] |
|
||||
| `net.sock.host.port` | int | Local socket port number. | `35555` | Conditionally Required: [6] |
|
||||
| `net.host.connection.type` | string | The internet connection type currently being used by the host. | `wifi` | Recommended |
|
||||
| `net.host.connection.subtype` | string | This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. | `LTE` | Recommended |
|
||||
| `net.host.carrier.name` | string | The name of the mobile carrier. | `sprint` | Recommended |
|
||||
|
|
@ -70,7 +70,7 @@ the `net.peer.*` properties of a client are equal to the `net.host.*` properties
|
|||
|
||||
**[5]:** `net.peer.name` SHOULD NOT be set if capturing it would require an extra DNS lookup.
|
||||
|
||||
**[6]:** If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set.
|
||||
**[6]:** If defined for the address family and if different than `net.host.port` and if `net.sock.host.addr` is set. In other cases, it is still recommended to set this.
|
||||
|
||||
`net.transport` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue