From bfac042301f9085d503ab11babe5dbb365613a5b Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Mon, 12 Sep 2022 17:46:26 +0200 Subject: [PATCH] Polish See gh-28341 --- .../function/client/DefaultClientObservationConvention.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientObservationConvention.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientObservationConvention.java index 5357f0f5c9..256599f642 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientObservationConvention.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientObservationConvention.java @@ -20,13 +20,13 @@ import java.io.IOException; import io.micrometer.common.KeyValue; import io.micrometer.common.KeyValues; -import io.micrometer.observation.Observation; +import io.micrometer.observation.ObservationConvention; import org.springframework.http.HttpStatus; import org.springframework.util.StringUtils; /** - * Default implementation for a {@code WebClient} {@link Observation.ObservationConvention}, + * Default implementation for a {@code WebClient} {@link ObservationConvention}, * extracting information from the {@link ClientObservationContext}. * * @author Brian Clozel @@ -64,7 +64,7 @@ public class DefaultClientObservationConvention implements ClientObservationConv @Override public String getName() { - return "http.client.requests"; + return this.name; } @Override