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
|[`server.address`](/docs/registry/attributes/server.md)| string |Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [2]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
532
-
|[`server.port`](/docs/registry/attributes/server.md)| int |Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [3]|`80`; `8080`; `443`|`Required`||
531
+
|[`server.address`](/docs/registry/attributes/server.md)| string |Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [2]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
532
+
|[`server.port`](/docs/registry/attributes/server.md)| int |Server port number. [3]|`80`; `8080`; `443`|`Required`||
533
533
|[`error.type`](/docs/registry/attributes/error.md)| string | Describes a class of error the operation ended with. [4]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` If request has ended with an error. ||
534
534
|[`http.response.status_code`](/docs/registry/attributes/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. ||
@@ -552,9 +552,19 @@ HTTP method names are case-sensitive and `http.request.method` attribute value M
552
552
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
553
553
Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value.
554
554
555
-
**[2]`server.address`:** If an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then `server.address` SHOULD be the IP address `x.x.x.x`. A DNS lookup SHOULD NOT be used.
555
+
**[2]`server.address`:** In HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
556
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
557
+
the `server.address` SHOULD match the host component of the request target.
556
558
557
-
**[3]`server.port`:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
559
+
In all other cases, `server.address` SHOULD match the host component of the
560
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
561
+
562
+
**[3]`server.port`:** In the case of HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
563
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
564
+
the `server.port` SHOULD match the port component of the request target.
565
+
566
+
In all other cases, `server.port` SHOULD match the port component of the
567
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
558
568
559
569
**[4]`error.type`:** If the request fails with an error before response status code was sent or received,
560
570
`error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable)
|[`server.address`](/docs/registry/attributes/server.md)| string |Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [2]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
635
-
|[`server.port`](/docs/registry/attributes/server.md)| int |Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [3]|`80`; `8080`; `443`|`Required`||
644
+
|[`server.address`](/docs/registry/attributes/server.md)| string |Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [2]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
645
+
|[`server.port`](/docs/registry/attributes/server.md)| int |Server port number. [3]|`80`; `8080`; `443`|`Required`||
636
646
|[`error.type`](/docs/registry/attributes/error.md)| string | Describes a class of error the operation ended with. [4]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` If request has ended with an error. ||
637
647
|[`http.response.status_code`](/docs/registry/attributes/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. ||
@@ -655,9 +665,19 @@ HTTP method names are case-sensitive and `http.request.method` attribute value M
655
665
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
656
666
Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value.
657
667
658
-
**[2]`server.address`:** If an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then `server.address` SHOULD be the IP address `x.x.x.x`. A DNS lookup SHOULD NOT be used.
668
+
**[2]`server.address`:** In HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
669
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
670
+
the `server.address` SHOULD match the host component of the request target.
671
+
672
+
In all other cases, `server.address` SHOULD match the host component of the
673
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
659
674
660
-
**[3]`server.port`:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
675
+
**[3]`server.port`:** In the case of HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
676
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
677
+
the `server.port` SHOULD match the port component of the request target.
678
+
679
+
In all other cases, `server.port` SHOULD match the port component of the
680
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
661
681
662
682
**[4]`error.type`:** If the request fails with an error before response status code was sent or received,
663
683
`error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable)
|[`server.address`](/docs/registry/attributes/server.md)| string |Host identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [2]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
738
-
|[`server.port`](/docs/registry/attributes/server.md)| int |Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [3]|`80`; `8080`; `443`|`Required`||
757
+
|[`server.address`](/docs/registry/attributes/server.md)| string |Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [2]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
758
+
|[`server.port`](/docs/registry/attributes/server.md)| int |Server port number. [3]|`80`; `8080`; `443`|`Required`||
739
759
|[`error.type`](/docs/registry/attributes/error.md)| string | Describes a class of error the operation ended with. [4]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` If request has ended with an error. ||
740
760
|[`http.response.status_code`](/docs/registry/attributes/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. ||
@@ -758,9 +778,19 @@ HTTP method names are case-sensitive and `http.request.method` attribute value M
758
778
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
759
779
Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value.
760
780
761
-
**[2]`server.address`:** If an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then `server.address` SHOULD be the IP address `x.x.x.x`. A DNS lookup SHOULD NOT be used.
781
+
**[2]`server.address`:** In HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
782
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
783
+
the `server.address` SHOULD match the host component of the request target.
784
+
785
+
In all other cases, `server.address` SHOULD match the host component of the
786
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
762
787
763
-
**[3]`server.port`:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
788
+
**[3]`server.port`:** In the case of HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
789
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
790
+
the `server.port` SHOULD match the port component of the request target.
791
+
792
+
In all other cases, `server.port` SHOULD match the port component of the
793
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
764
794
765
795
**[4]`error.type`:** If the request fails with an error before response status code was sent or received,
766
796
`error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable)
@@ -836,7 +866,7 @@ This metric is optional.
836
866
|---|---|---|---|---|---|
837
867
|[`http.connection.state`](/docs/registry/attributes/http.md)| string | State of the HTTP connection in the HTTP connection pool. |`active`; `idle`|`Required`||
838
868
|[`server.address`](/docs/registry/attributes/server.md)| string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [1]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
839
-
|[`server.port`](/docs/registry/attributes/server.md)| int |Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [2]|`80`; `8080`; `443`|`Required`||
869
+
|[`server.port`](/docs/registry/attributes/server.md)| int |Server port number. [2]|`80`; `8080`; `443`|`Required`||
840
870
|[`network.peer.address`](/docs/registry/attributes/network.md)| string | Peer address of the network connection - IP address or Unix domain socket name. |`10.1.2.80`; `/tmp/my.sock`|`Recommended`||
841
871
|[`network.protocol.version`](/docs/registry/attributes/network.md)| string | The actual version of the protocol used for network communication. [3]|`1.1`; `2`|`Recommended`||
842
872
|[`url.scheme`](/docs/registry/attributes/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`|`Opt-In`||
|[`server.address`](/docs/registry/attributes/server.md)| string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [1]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
886
-
|[`server.port`](/docs/registry/attributes/server.md)| int |Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [2]|`80`; `8080`; `443`|`Required`||
916
+
|[`server.port`](/docs/registry/attributes/server.md)| int |Server port number. [2]|`80`; `8080`; `443`|`Required`||
887
917
|[`network.peer.address`](/docs/registry/attributes/network.md)| string | Peer address of the network connection - IP address or Unix domain socket name. |`10.1.2.80`; `/tmp/my.sock`|`Recommended`||
888
918
|[`network.protocol.version`](/docs/registry/attributes/network.md)| string | The actual version of the protocol used for network communication. [3]|`1.1`; `2`|`Recommended`||
889
919
|[`url.scheme`](/docs/registry/attributes/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`|`Opt-In`||
|[`server.address`](/docs/registry/attributes/server.md)| string | Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [1]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Required`||
922
-
|[`server.port`](/docs/registry/attributes/server.md)| int |Port identifier of the ["URI origin"](https://www.rfc-editor.org/rfc/rfc9110.html#name-uri-origin) HTTP request is sent to. [2]|`80`; `8080`; `443`|`Required`||
952
+
|[`server.port`](/docs/registry/attributes/server.md)| int |Server port number. [2]|`80`; `8080`; `443`|`Required`||
923
953
|[`url.template`](/docs/registry/attributes/url.md)| string | The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). [3]|`/users/{id}`; `/users/:id`; `/users?id={id}`|`Conditionally Required` If available. ||
|[`url.scheme`](/docs/registry/attributes/url.md)| string | The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. |`http`; `https`|`Opt-In`||
926
956
927
-
**[1]`server.address`:** When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available.
957
+
**[1]`server.address`:** In HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
958
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
959
+
the `server.address` SHOULD match the host component of the request target.
928
960
929
-
**[2]`server.port`:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
961
+
In all other cases, `server.address` SHOULD match the host component of the
962
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
963
+
964
+
**[2]`server.port`:** In the case of HTTP/1.1, when the [request target](https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target)
965
+
is passed in its [absolute-form](https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2.2),
966
+
the `server.port` SHOULD match the port component of the request target.
967
+
968
+
In all other cases, `server.port` SHOULD match the port component of the
969
+
`Host` header in HTTP/1.1 or the `:authority` pseudo-header in HTTP/2 and HTTP/3.
930
970
931
971
**[3]`url.template`:** The `url.template` MUST have low cardinality. It is not usually available on HTTP clients, but may be known by the application or specialized HTTP instrumentation.
0 commit comments