See gh-32484
This commit is contained in:
Brian Clozel
2022-09-27 22:45:46 +02:00
parent eac50a8f0c
commit b325edbc55

View File

@@ -862,10 +862,10 @@ 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 `MetricsRestTemplateCustomizer` and `MetricsWebClientCustomizer`.
You can also manually apply the customizers responsible for this instrumentation, namely `ObservationRestTemplateCustomizer` and `MetricsWebClientCustomizer`.
By default, metrics are generated with the name, `http.client.requests`.
You can customize the name by setting the configprop:management.metrics.web.client.request.metric-name[] property.
You can customize the name by setting the configprop:management.observations.http.client.requests.name[] property.
By default, metrics generated by an instrumented client are tagged with the following information: