Make client.name low cardinality keyvalue for client observations
Prior to this commit, the `"client.name"` key value for the
`"http.client.requests"` client HTTP observations would be considered as
high cardinality, as the URI host is technically unbounded.
In practice, the number of hosts used by a client in a given application
can be considered as low cardinality. This commit moves this keyvalue to
low cardinality so that it's present for both metrics and traces.
Closes gh-29839
@ -131,18 +131,18 @@ Instrumentation is using the `org.springframework.http.client.observation.Client
@@ -131,18 +131,18 @@ Instrumentation is using the `org.springframework.http.client.observation.Client
[cols="a,a"]
|===
|Name | Description
|`exception` _(required)_|Name of the exception thrown during the exchange, or `"none"` if no exception happened.
|`method` _(required)_|Name of HTTP request method or `"none"` if the request could not be created.
|`outcome` _(required)_|Outcome of the HTTP client exchange.
|`status` _(required)_|HTTP response raw status code, or `"IO_ERROR"` in case of `IOException`, or `"CLIENT_ERROR"` if no response was received.
|`uri` _(required)_|URI template used for HTTP request, or `"none"` if none was provided.
|`client.name` _(required)_|Client name derived from the request URI host.
|`status` _(required)_|HTTP response raw status code, or `"IO_ERROR"` in case of `IOException`, or `"CLIENT_ERROR"` if no response was received.
|`outcome` _(required)_|Outcome of the HTTP client exchange.
|`exception` _(required)_|Name of the exception thrown during the exchange, or `"none"` if no exception happened.
|===
.High cardinality Keys
[cols="a,a"]
|===
|Name | Description
|`client.name` _(required)_|Client name derived from the request URI host.
|`http.url` _(required)_|HTTP request URI.
|===
@ -157,18 +157,18 @@ Instrumentation is using the `org.springframework.web.reactive.function.client.C
@@ -157,18 +157,18 @@ Instrumentation is using the `org.springframework.web.reactive.function.client.C
[cols="a,a"]
|===
|Name | Description
|`exception` _(required)_|Name of the exception thrown during the exchange, or `"none"` if no exception happened.
|`method` _(required)_|Name of HTTP request method or `"none"` if the request could not be created.
|`outcome` _(required)_|Outcome of the HTTP client exchange.
|`status` _(required)_|HTTP response raw status code, or `"IO_ERROR"` in case of `IOException`, or `"CLIENT_ERROR"` if no response was received.
|`uri` _(required)_|URI template used for HTTP request, or `"none"` if none was provided.
|`client.name` _(required)_|Client name derived from the request URI host.
|`status` _(required)_|HTTP response raw status code, or `"IO_ERROR"` in case of `IOException`, or `"CLIENT_ERROR"` if no response was received.
|`outcome` _(required)_|Outcome of the HTTP client exchange.
|`exception` _(required)_|Name of the exception thrown during the exchange, or `"none"` if no exception happened.
|===
.High cardinality Keys
[cols="a,a"]
|===
|Name | Description
|`client.name` _(required)_|Client name derived from the request URI host.
@ -51,12 +51,12 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -51,12 +51,12 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -87,7 +87,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -87,7 +87,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -119,6 +119,13 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -119,6 +119,13 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -129,7 +136,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -129,7 +136,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -143,7 +150,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -143,7 +150,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -153,12 +160,6 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -153,12 +160,6 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -50,11 +50,12 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -50,11 +50,12 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -86,7 +87,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -86,7 +87,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -119,6 +120,13 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -119,6 +120,13 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -141,7 +149,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -141,7 +149,7 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@ -151,13 +159,6 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO
@@ -151,13 +159,6 @@ public class DefaultClientRequestObservationConvention implements ClientRequestO