Skip to content

Commit 3d7e5e3

Browse files
committed
Polish
1 parent efba707 commit 3d7e5e3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/http/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Support classes HTTP-related metrics.
18+
* Support classes for HTTP-related metrics.
1919
*/
2020
package org.springframework.boot.actuate.metrics.http;

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/server/DefaultWebFluxTagsProvider.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ public DefaultWebFluxTagsProvider(boolean ignoreTrailingSlash, List<WebFluxTagsC
7070

7171
@Override
7272
public Iterable<Tag> httpRequestTags(ServerWebExchange exchange, Throwable exception) {
73-
Tags tags = Tags.of(WebFluxTags.method(exchange), WebFluxTags.uri(exchange, this.ignoreTrailingSlash),
74-
WebFluxTags.exception(exception), WebFluxTags.status(exchange),
75-
WebFluxTags.outcome(exchange, exception));
73+
Tags tags = Tags.empty();
74+
tags = tags.and(WebFluxTags.method(exchange));
75+
tags = tags.and(WebFluxTags.uri(exchange, this.ignoreTrailingSlash));
76+
tags = tags.and(WebFluxTags.exception(exception));
77+
tags = tags.and(WebFluxTags.status(exchange));
78+
tags = tags.and(WebFluxTags.outcome(exchange, exception));
7679
for (WebFluxTagsContributor contributor : this.contributors) {
7780
tags = tags.and(contributor.httpRequestTags(exchange, exception));
7881
}

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/server/MetricsWebFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
import org.springframework.web.server.WebFilterChain;
4242

4343
/**
44-
* Intercepts incoming HTTP requests handled by Spring WebFlux handlers.
44+
* Intercepts incoming HTTP requests handled by Spring WebFlux handlers and records
45+
* metrics about execution time and results.
4546
*
4647
* @author Jon Schneider
4748
* @author Brian Clozel

0 commit comments

Comments
 (0)