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
|`cpu.mode`| string | The mode of the CPU. |`user`; `system`| Always |
28
+
|`cpu.mode`|`string`| The mode of the CPU. |`user`; `system`| Always |
29
29
30
30
This metric reports the same values as accessing the processor time properties on <xref:System.Diagnostics.Process?displayProperty=nameWithType> for the current process. The `system` mode corresponds to <xref:System.Diagnostics.Process.PrivilegedProcessorTime> and `user` mode corresponds to <xref:System.Diagnostics.Process.UserProcessorTime>
31
31
@@ -83,7 +83,7 @@ Available starting in: .NET 9.0.
|`gc.heap.generation`| string | Name of the garbage collector managed heap generation. |`gen0`; `gen1`; `gen2`; `loh`; `poh`| Always |
86
+
|`gc.heap.generation`|`string`| Name of the garbage collector managed heap generation. |`gen0`; `gen1`; `gen2`; `loh`; `poh`| Always |
87
87
88
88
The .NET GC divides the heap into generations. In addition to the standard numbered generations, the GC also puts some objects into two special generations:
89
89
@@ -102,7 +102,7 @@ Available starting in: .NET 9.0.
|`dns.question.name`| string | The name being queried. |`www.example.com`; `dot.net`| Always |
31
-
|`error.type`| string | A well-known error string or the full type name of an exception that occurred. |`host_not_found`; `System.Net.Sockets.SocketException`| If an error occurred |
30
+
|`dns.question.name`|`string`| The name being queried. |`www.example.com`; `dot.net`| Always |
31
+
|`error.type`|`string`| A well-known error string or the full type name of an exception that occurred. |`host_not_found`; `System.Net.Sockets.SocketException`| If an error occurred |
32
32
33
33
This metric measures the time take to make DNS requests. These requests can occur by calling methods on
34
34
<xref:System.Net.Dns> or indirectly within higher level APIs on types such as <xref:System.Net.Http.HttpClient>.
@@ -66,12 +66,12 @@ The `System.Net.Http` metrics report HTTP request and connection information fro
|`http.connection.state`| string | State of HTTP connection in the HTTP connection pool. |`active`; `idle`| Always |
70
-
|`network.protocol.version`| string | Version of the HTTP protocol used. |`1.1`; `2`| Always |
71
-
|`server.address`| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
72
-
|`server.port`| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
73
-
|`network.peer.address`| string | Peer IP address of the socket connection. |`10.5.3.2`| Always |
74
-
|`url.scheme`| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
69
+
|`http.connection.state`|`string`| State of HTTP connection in the HTTP connection pool. |`active`; `idle`| Always |
70
+
|`network.protocol.version`|`string`| Version of the HTTP protocol used. |`1.1`; `2`| Always |
71
+
|`server.address`|`string`| Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
72
+
|`server.port`|`int`| Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
73
+
|`network.peer.address`|`string`| Peer IP address of the socket connection. |`10.5.3.2`| Always |
74
+
|`url.scheme`|`string`| The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
75
75
76
76
<xref:System.Net.Http.HttpClient>, when configured to use the default <xref:System.Net.Http.SocketsHttpHandler>, maintains a cached pool of network connections for sending HTTP messages. This metric counts how many connections are currently in the pool. Active connections are handling active requests. Active connects could be transmitting data or awaiting the client or server. Idle connections aren't handling any requests, but are left open so that future requests can be handled more quickly.
|`network.protocol.version`| string | Version of the HTTP protocol used. |`1.1`; `2`| Always |
89
-
|`server.address`| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
90
-
|`server.port`| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
91
-
|`network.peer.address`| string | IP address of the socket connection. |`10.5.3.2`| Always |
92
-
|`url.scheme`| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
88
+
|`network.protocol.version`|`string`| Version of the HTTP protocol used. |`1.1`; `2`| Always |
89
+
|`server.address`|`string`| Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
90
+
|`server.port`|`int`| Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
91
+
|`network.peer.address`|`string`| IP address of the socket connection. |`10.5.3.2`| Always |
92
+
|`url.scheme`|`string`| The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
93
93
94
94
This metric is only captured when <xref:System.Net.Http.HttpClient> is configured to use the default <xref:System.Net.Http.SocketsHttpHandler>.
95
95
@@ -105,13 +105,13 @@ Available starting in: .NET 8
|`error.type`| string | Request failure reason: one of the [HTTP request errors](xref:System.Net.Http.HttpRequestError) in snake_case, or a full exception type, or an HTTP 4xx/5xx status code. |`System.Threading.Tasks.TaskCanceledException`; `name_resolution_error`; `secure_connection_error` ; `404`| If request has failed. |
|`http.response.status_code`| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| If response was received. |
111
-
|`network.protocol.version`| string | Version of the HTTP protocol used. |`1.1`; `2`| If response was received. |
112
-
|`server.address`| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
113
-
|`server.port`| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| Depends on .NET version. [3]|
114
-
|`url.scheme`| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
108
+
|`error.type`|`string`| Request failure reason: one of the [HTTP request errors](xref:System.Net.Http.HttpRequestError) in snake_case, or a full exception type, or an HTTP 4xx/5xx status code. |`System.Threading.Tasks.TaskCanceledException`; `name_resolution_error`; `secure_connection_error` ; `404`| If request has failed. |
|`http.response.status_code`|`int`|[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| If response was received. |
111
+
|`network.protocol.version`|`string`| Version of the HTTP protocol used. |`1.1`; `2`| If response was received. |
112
+
|`server.address`|`string`| Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
113
+
|`server.port`|`int`| Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| Depends on .NET version. [3]|
114
+
|`url.scheme`|`string`| The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
115
115
116
116
**[1]`error.type`:** If the request has failed, the value is set to one of the following:
117
117
@@ -143,11 +143,11 @@ Available starting in: .NET 8
|`network.protocol.version`| string | Version of the HTTP protocol used. |`1.1`; `2`| Always |
148
-
|`server.address`| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
149
-
|`server.port`| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
150
-
|`url.scheme`| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
|`network.protocol.version`|`string`| Version of the HTTP protocol used. |`1.1`; `2`| Always |
148
+
|`server.address`|`string`| Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
149
+
|`server.port`|`int`| Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
150
+
|`url.scheme`|`string`| The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
151
151
152
152
<xref:System.Net.Http.HttpClient>, when configured to use the default <xref:System.Net.Http.SocketsHttpHandler>, sends HTTP requests using a pool of network connections. If all connections are busy handling other requests, new requests are placed in a queue and wait until a network connection is available for use. This instrument measures the amount of time HTTP requests spend waiting in that queue, prior to anything being sent across the network.
153
153
@@ -161,10 +161,10 @@ Available starting in: .NET 8
|`server.address`| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
166
-
|`server.port`| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
167
-
|`url.scheme`| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
|`server.address`|`string`| Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`example.com`| Always |
166
+
|`server.port`|`int`| Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. |`80`; `8080`; `443`| If not default (`80` for `http` scheme, `443` for `https`) |
167
+
|`url.scheme`|`string`| The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`; `ftp`| Always |
168
168
169
169
This metric counts how many requests are considered active. Requests are active for the same time period that is measured by the [http.client.request.duration](#metric-httpclientrequestduration) instrument.
0 commit comments