Commit 3d7e5e3a authored by Phillip Webb's avatar Phillip Webb

Polish

parent efba7076
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
*/ */
/** /**
* Support classes HTTP-related metrics. * Support classes for HTTP-related metrics.
*/ */
package org.springframework.boot.actuate.metrics.http; package org.springframework.boot.actuate.metrics.http;
...@@ -70,9 +70,12 @@ public class DefaultWebFluxTagsProvider implements WebFluxTagsProvider { ...@@ -70,9 +70,12 @@ public class DefaultWebFluxTagsProvider implements WebFluxTagsProvider {
@Override @Override
public Iterable<Tag> httpRequestTags(ServerWebExchange exchange, Throwable exception) { public Iterable<Tag> httpRequestTags(ServerWebExchange exchange, Throwable exception) {
Tags tags = Tags.of(WebFluxTags.method(exchange), WebFluxTags.uri(exchange, this.ignoreTrailingSlash), Tags tags = Tags.empty();
WebFluxTags.exception(exception), WebFluxTags.status(exchange), tags = tags.and(WebFluxTags.method(exchange));
WebFluxTags.outcome(exchange, exception)); tags = tags.and(WebFluxTags.uri(exchange, this.ignoreTrailingSlash));
tags = tags.and(WebFluxTags.exception(exception));
tags = tags.and(WebFluxTags.status(exchange));
tags = tags.and(WebFluxTags.outcome(exchange, exception));
for (WebFluxTagsContributor contributor : this.contributors) { for (WebFluxTagsContributor contributor : this.contributors) {
tags = tags.and(contributor.httpRequestTags(exchange, exception)); tags = tags.and(contributor.httpRequestTags(exchange, exception));
} }
......
...@@ -41,7 +41,8 @@ import org.springframework.web.server.WebFilter; ...@@ -41,7 +41,8 @@ import org.springframework.web.server.WebFilter;
import org.springframework.web.server.WebFilterChain; import org.springframework.web.server.WebFilterChain;
/** /**
* Intercepts incoming HTTP requests handled by Spring WebFlux handlers. * Intercepts incoming HTTP requests handled by Spring WebFlux handlers and records
* metrics about execution time and results.
* *
* @author Jon Schneider * @author Jon Schneider
* @author Brian Clozel * @author Brian Clozel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment