Polish HTTP client observability changes

See gh-32484
See gh-32518

Closes gh-32636
This commit is contained in:
Johnny Lim
2022-10-08 01:04:05 +09:00
committed by Brian Clozel
parent 23a9818e0d
commit 73fd760137
8 changed files with 15 additions and 20 deletions

View File

@@ -862,7 +862,7 @@ For that, you have to inject the auto-configured builder and use it to create in
* `RestTemplateBuilder` for `RestTemplate`
* `WebClient.Builder` for `WebClient`
You can also manually apply the customizers responsible for this instrumentation, namely `ObservationRestTemplateCustomizer` and `MetricsWebClientCustomizer`.
You can also manually apply the customizers responsible for this instrumentation, namely `ObservationRestTemplateCustomizer` and `ObservationWebClientCustomizer`.
By default, metrics are generated with the name, `http.client.requests`.
You can customize the name by setting the configprop:management.observations.http.client.requests.name[] property.