You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/attributes-registry/network.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ These attributes may be used for any network related operation.
19
19
| <aid="network-carrier-mcc"href="#network-carrier-mcc">`network.carrier.mcc`</a> | string | The mobile carrier country code. |`310`||
20
20
| <aid="network-carrier-mnc"href="#network-carrier-mnc">`network.carrier.mnc`</a> | string | The mobile carrier network code. |`001`||
21
21
| <aid="network-carrier-name"href="#network-carrier-name">`network.carrier.name`</a> | string | The name of the mobile carrier. |`sprint`||
22
+
| <aid="network-connection-state"href="#network-connection-state">`network.connection.state`</a> | string | The state of network connection [1]|`close_wait`||
22
23
| <aid="network-connection-subtype"href="#network-connection-subtype">`network.connection.subtype`</a> | 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`||
23
24
| <aid="network-connection-type"href="#network-connection-type">`network.connection.type`</a> | string | The internet connection type. |`wifi`||
@@ -27,22 +28,42 @@ These attributes may be used for any network related operation.
27
28
| <aid="network-local-port"href="#network-local-port">`network.local.port`</a> | int | Local port number of the network connection. |`65123`||
28
29
| <aid="network-peer-address"href="#network-peer-address">`network.peer.address`</a> | string | Peer address of the network connection - IP address or Unix domain socket name. |`10.1.2.80`; `/tmp/my.sock`||
29
30
| <aid="network-peer-port"href="#network-peer-port">`network.peer.port`</a> | int | Peer port number of the network connection. |`65123`||
| <aid="network-protocol-version"href="#network-protocol-version">`network.protocol.version`</a> | string | The actual version of the protocol used for network communication. [2]|`1.1`; `2`||
32
-
| <aid="network-transport"href="#network-transport">`network.transport`</a> | string |[OSI transport layer](https://wikipedia.org/wiki/Transport_layer) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). [3]|`tcp`; `udp`||
| <aid="network-protocol-version"href="#network-protocol-version">`network.protocol.version`</a> | string | The actual version of the protocol used for network communication. [3]|`1.1`; `2`||
33
+
| <aid="network-transport"href="#network-transport">`network.transport`</a> | string |[OSI transport layer](https://wikipedia.org/wiki/Transport_layer) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). [4]|`tcp`; `udp`||
**[1]`network.protocol.name`:**The value SHOULD be normalized to lowercase.
36
+
**[1]`network.connection.state`:**Connection states are defined as part of the [rfc9293](https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2)
36
37
37
-
**[2]`network.protocol.version`:**If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set.
38
+
**[2]`network.protocol.name`:**The value SHOULD be normalized to lowercase.
38
39
39
-
**[3]`network.transport`:** The value SHOULD be normalized to lowercase.
40
+
**[3]`network.protocol.version`:** If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set.
41
+
42
+
**[4]`network.transport`:** The value SHOULD be normalized to lowercase.
40
43
41
44
Consider always setting the transport when setting a port number, since
42
45
a port number is ambiguous without knowing the transport. For example
43
46
different processes could be listening on TCP port 12345 and UDP port 12345.
44
47
45
-
**[4]`network.type`:** The value SHOULD be normalized to lowercase.
48
+
**[5]`network.type`:** The value SHOULD be normalized to lowercase.
49
+
50
+
---
51
+
52
+
`network.connection.state` 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.
|`pipe`| Named or anonymous pipe. ||
160
181
161
-
**[5]:** Signals that there is only in-process communication not using a "real" network protocol in cases where network attributes would normally be expected. Usually all other network attributes can be left out in that case.
182
+
**[6]:** Signals that there is only in-process communication not using a "real" network protocol in cases where network attributes would normally be expected. Usually all other network attributes can be left out in that case.
| <aid="system-network-state"href="#system-network-state">`system.network.state`</a> | string | A stateless protocol MUST NOT set this attribute |`close_wait`||
95
-
96
-
---
97
-
98
-
`system.network.state` 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.
99
-
100
-
| Value | Description | Stability |
101
-
|---|---|---|
102
-
|`close`| close ||
| <aid="system-cpu-state"href="#system-cpu-state">`system.cpu.state`</a> | string | Deprecated, use `cpu.mode` instead. |`idle`; `interrupt`|<br>Replaced by `cpu.mode`|
150
+
| <aid="system-network-state"href="#system-network-state">`system.network.state`</a> | string | Deprecated, use `network.connection.state` instead. |`close_wait`|<br>Removed, report network connection state with `network.connection.state` attribute |
178
151
| <aid="system-processes-status"href="#system-processes-status">`system.processes.status`</a> | string | Deprecated, use `system.process.status` instead. |`running`|<br>Replaced by `system.process.status`. |
179
152
180
153
---
@@ -193,6 +166,25 @@ Deprecated system attributes.
193
166
194
167
---
195
168
169
+
`system.network.state` 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.
170
+
171
+
| Value | Description | Stability |
172
+
|---|---|---|
173
+
|`close`| close ||
`system.processes.status` 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.
|[`network.connection.state`](/docs/attributes-registry/network.md)| string | The state of network connection [1]|`close_wait`|`Recommended`||
1044
1045
|[`network.interface.name`](/docs/attributes-registry/network.md)| string | The network interface name. |`lo`; `eth0`|`Recommended`||
1045
-
|[`network.transport`](/docs/attributes-registry/network.md)| string |[OSI transport layer](https://wikipedia.org/wiki/Transport_layer) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). [1]|`tcp`; `udp`|`Recommended`||
1046
-
|[`system.network.state`](/docs/attributes-registry/system.md)| string | A stateless protocol MUST NOT set this attribute |`close_wait`|`Recommended`||
1046
+
|[`network.transport`](/docs/attributes-registry/network.md)| string |[OSI transport layer](https://wikipedia.org/wiki/Transport_layer) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). [2]|`tcp`; `udp`|`Recommended`||
1047
1047
1048
-
**[1]`network.transport`:** The value SHOULD be normalized to lowercase.
1048
+
**[1]`network.connection.state`:** Connection states are defined as part of the [rfc9293](https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2)
1049
+
1050
+
**[2]`network.transport`:** The value SHOULD be normalized to lowercase.
1049
1051
1050
1052
Consider always setting the transport when setting a port number, since
1051
1053
a port number is ambiguous without knowing the transport. For example
1052
1054
different processes could be listening on TCP port 12345 and UDP port 12345.
1053
1055
1054
1056
---
1055
1057
1056
-
`network.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.
1057
-
1058
-
| Value | Description | Stability |
1059
-
|---|---|---|
1060
-
|`pipe`| Named or anonymous pipe. ||
`system.network.state` 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.
1058
+
`network.connection.state` 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.
1069
1059
1070
1060
| Value | Description | Stability |
1071
1061
|---|---|---|
1072
-
|`close`| close ||
`network.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.
1077
+
1078
+
| Value | Description | Stability |
1079
+
|---|---|---|
1080
+
|`pipe`| Named or anonymous pipe. ||
0 commit comments