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
|`http.method`|`client` & `server`| Required | The HTTP request method. E.g. `"GET"`|
49
-
|`http.scheme`|`server`| Required | The URI scheme identifying the used protocol in lowercase: `"http"` or `"https"`|
50
-
|`http.status_code`|`client` & `server`| Conditionally Required: if and only if one was received/sent. |[HTTP response status code][]. E.g. `200` (String) |
51
-
|`http.flavor`|`client` & `server`| Recommended | Kind of HTTP protocol used: `"1.0"`, `"1.1"`, `"2"`, `"SPDY"` or `"QUIC"`. |
52
-
|`net.peer.name`|`client`| Required | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |
53
-
|`net.peer.port`|`client`| Conditionally Required: If not default (`80` for `http`, `443` for `https`). | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |
54
-
|`net.sock.peer.addr`|`client`| Recommended | See [general network connection attributes](../../trace/semantic_conventions/span-general.md#general-network-connection-attributes)|
55
-
|`net.host.name`|`server`| Required | Host of the local HTTP server that received the request. |
56
-
|`net.host.port`|`server`| Conditionally Required: If not default (`80` for `http`, `443` for `https`). | Port of the local HTTP server that received the request. |
46
+
| Name | Type | Requirement Level | Notes and examples |
|`http.method`|`client` & `server`| Required | The HTTP request method. E.g. `"GET"`|
49
+
|`http.scheme`|`server`| Required | The URI scheme identifying the used protocol in lowercase: `"http"` or `"https"`|
50
+
|`http.route`|`server`| Conditionally Required: If and only if it's available | The matched route (path template in the format used by the respective server framework). See note below [1]. E.g. `"/path/{id}/?q={}"`. |
51
+
|`http.status_code`|`client` & `server`| Conditionally Required: if and only if one was received/sent. |[HTTP response status code][]. E.g. `200` (String) |
52
+
|`http.flavor`|`client` & `server`| Recommended | Kind of HTTP protocol used: `"1.0"`, `"1.1"`, `"2"`, `"SPDY"` or `"QUIC"`. |
53
+
|`net.peer.name`|`client`| Required | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |
54
+
|`net.peer.port`|`client`| Conditionally Required: If not default (`80` for `http`, `443` for `https`). | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |
55
+
|`net.sock.peer.addr`|`client`| Recommended | See [general network connection attributes](../../trace/semantic_conventions/span-general.md#general-network-connection-attributes)|
56
+
|`net.host.name`|`server`| Required | Host of the local HTTP server that received the request. |
57
+
|`net.host.port`|`server`| Conditionally Required: If not default (`80` for `http`, `443` for `https`). | Port of the local HTTP server that received the request. |
58
+
59
+
**[1]:** 'http.route' 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.
57
60
58
61
The following attributes SHOULD be included in the `http.server.active_requests` observation:
59
62
@@ -67,26 +70,3 @@ The following attributes SHOULD be included in the `http.server.active_requests`
0 commit comments