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.response.status_code`](../attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| Conditionally Required: If and only if one was received/sent. |
82
82
|[`http.route`](../attributes-registry/http.md)| string | The matched route (path template in the format used by the respective server framework). See note below [3]|`/users/:userID?`; `{controller}/{action}/{id?}`| Conditionally Required: If and only if it's available |
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [5]|`3.1.1`| Recommended |
83
+
|[`network.protocol.name`](../general/attributes.md)| string |[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. [4]|`http`; `spdy`| Recommended: if not default (`http`).|
84
+
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [5]|`1.0`; `1.1`; `2`; `3`| Recommended |
85
85
|[`server.address`](../general/attributes.md)| string | Name of the local HTTP server that received the request. [6]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Opt-In |
86
86
|[`server.port`](../general/attributes.md)| int | Port of the local HTTP server that received the request. [7]|`80`; `8080`; `443`| Opt-In |
87
87
|[`url.scheme`](../url/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`| Required |
|[`http.response.status_code`](../attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| Conditionally Required: If and only if one was received/sent. |
254
254
|[`http.route`](../attributes-registry/http.md)| string | The matched route (path template in the format used by the respective server framework). See note below [3]|`/users/:userID?`; `{controller}/{action}/{id?}`| Conditionally Required: If and only if it's available |
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [5]|`3.1.1`| Recommended |
255
+
|[`network.protocol.name`](../general/attributes.md)| string |[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. [4]|`http`; `spdy`| Recommended: if not default (`http`).|
256
+
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [5]|`1.0`; `1.1`; `2`; `3`| Recommended |
257
257
|[`server.address`](../general/attributes.md)| string | Name of the local HTTP server that received the request. [6]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Opt-In |
258
258
|[`server.port`](../general/attributes.md)| int | Port of the local HTTP server that received the request. [7]|`80`; `8080`; `443`| Opt-In |
259
259
|[`url.scheme`](../url/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`| Required |
|[`http.response.status_code`](../attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| Conditionally Required: If and only if one was received/sent. |
358
358
|[`http.route`](../attributes-registry/http.md)| string | The matched route (path template in the format used by the respective server framework). See note below [3]|`/users/:userID?`; `{controller}/{action}/{id?}`| Conditionally Required: If and only if it's available |
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [5]|`3.1.1`| Recommended |
359
+
|[`network.protocol.name`](../general/attributes.md)| string |[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. [4]|`http`; `spdy`| Recommended: if not default (`http`).|
360
+
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [5]|`1.0`; `1.1`; `2`; `3`| Recommended |
361
361
|[`server.address`](../general/attributes.md)| string | Name of the local HTTP server that received the request. [6]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Opt-In |
362
362
|[`server.port`](../general/attributes.md)| int | Port of the local HTTP server that received the request. [7]|`80`; `8080`; `443`| Opt-In |
363
363
|[`url.scheme`](../url/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`| Required |
|`error.type`| string | Describes a class of error the operation ended with. [1]|`timeout`; `name_resolution_error`; `500`| Conditionally Required: If request has ended with an error. |
|[`http.response.status_code`](../attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| Conditionally Required: If and only if one was received/sent. |
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [4]|`3.1.1`| Recommended |
468
+
|[`network.protocol.name`](../general/attributes.md)| string |[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. [3]|`http`; `spdy`| Recommended: if not default (`http`).|
469
+
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [4]|`1.0`; `1.1`; `2`; `3`| Recommended |
470
470
|[`server.address`](../general/attributes.md)| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [5]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Required |
471
471
|[`server.port`](../general/attributes.md)| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [6]|`80`; `8080`; `443`| Conditionally Required: [7]|
472
472
|[`url.scheme`](../url/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`https`; `ftp`; `telnet`| Required |
@@ -512,7 +512,8 @@ Tracing instrumentations that do so, MUST also set `http.request.method_original
512
512
if it's sent in absolute-form
513
513
- Host identifier of the `Host` header
514
514
515
-
SHOULD NOT be set if capturing it would require an extra DNS lookup.
515
+
If an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then
516
+
`server.address` SHOULD be the IP address `x.x.x.x`. A DNS lookup SHOULD NOT be used.
516
517
517
518
**[6]:** When [request target](https://www.rfc-editor.org/rfc/rfc9110.html#target.resource) is absolute URI, `server.port` MUST match URI port identifier, otherwise it MUST match `Host` header port identifier.
518
519
@@ -560,8 +561,8 @@ This metric is optional.
560
561
|`error.type`| string | Describes a class of error the operation ended with. [1]|`timeout`; `name_resolution_error`; `500`| Conditionally Required: If request has ended with an error. |
|[`http.response.status_code`](../attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| Conditionally Required: If and only if one was received/sent. |
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [4]|`3.1.1`| Recommended |
564
+
|[`network.protocol.name`](../general/attributes.md)| string |[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. [3]|`http`; `spdy`| Recommended: if not default (`http`).|
565
+
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [4]|`1.0`; `1.1`; `2`; `3`| Recommended |
565
566
|[`server.address`](../general/attributes.md)| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [5]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Required |
566
567
|[`server.port`](../general/attributes.md)| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [6]|`80`; `8080`; `443`| Conditionally Required: [7]|
567
568
|[`url.scheme`](../url/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`https`; `ftp`; `telnet`| Required |
@@ -607,7 +608,8 @@ Tracing instrumentations that do so, MUST also set `http.request.method_original
607
608
if it's sent in absolute-form
608
609
- Host identifier of the `Host` header
609
610
610
-
SHOULD NOT be set if capturing it would require an extra DNS lookup.
611
+
If an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then
612
+
`server.address` SHOULD be the IP address `x.x.x.x`. A DNS lookup SHOULD NOT be used.
611
613
612
614
**[6]:** When [request target](https://www.rfc-editor.org/rfc/rfc9110.html#target.resource) is absolute URI, `server.port` MUST match URI port identifier, otherwise it MUST match `Host` header port identifier.
613
615
@@ -655,8 +657,8 @@ This metric is optional.
655
657
|`error.type`| string | Describes a class of error the operation ended with. [1]|`timeout`; `name_resolution_error`; `500`| Conditionally Required: If request has ended with an error. |
|[`http.response.status_code`](../attributes-registry/http.md)| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`| Conditionally Required: If and only if one was received/sent. |
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [4]|`3.1.1`| Recommended |
660
+
|[`network.protocol.name`](../general/attributes.md)| string |[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. [3]|`http`; `spdy`| Recommended: if not default (`http`).|
661
+
|[`network.protocol.version`](../general/attributes.md)| string | Version of the protocol specified in `network.protocol.name`. [4]|`1.0`; `1.1`; `2`; `3`| Recommended |
660
662
|[`server.address`](../general/attributes.md)| string | Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [5]|`example.com`; `10.1.2.80`; `/tmp/my.sock`| Required |
661
663
|[`server.port`](../general/attributes.md)| int | Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [6]|`80`; `8080`; `443`| Conditionally Required: [7]|
662
664
|[`url.scheme`](../url/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`https`; `ftp`; `telnet`| Required |
@@ -702,7 +704,8 @@ Tracing instrumentations that do so, MUST also set `http.request.method_original
702
704
if it's sent in absolute-form
703
705
- Host identifier of the `Host` header
704
706
705
-
SHOULD NOT be set if capturing it would require an extra DNS lookup.
707
+
If an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then
708
+
`server.address` SHOULD be the IP address `x.x.x.x`. A DNS lookup SHOULD NOT be used.
706
709
707
710
**[6]:** When [request target](https://www.rfc-editor.org/rfc/rfc9110.html#target.resource) is absolute URI, `server.port` MUST match URI port identifier, otherwise it MUST match `Host` header port identifier.
|[`http.resend_count`](../attributes-registry/http.md)| int | The ordinal number of request resending attempt (for any reason, including redirects). [1]|`3`| Recommended: if and only if request was retried. |
@@ -363,7 +363,7 @@ This span type represents an inbound HTTP request.
363
363
364
364
For an HTTP server span, `SpanKind` MUST be `Server`.
|[`client.address`](../general/attributes.md)| string | Client address - domain name if available without reverse DNS lookup, otherwise IP address or Unix domain socket name. [1]|`83.164.160.102`| Recommended |
0 commit comments