Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
3d7e5e3a
Commit
3d7e5e3a
authored
Apr 10, 2021
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
efba7076
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
package-info.java
...ringframework/boot/actuate/metrics/http/package-info.java
+1
-1
DefaultWebFluxTagsProvider.java
...trics/web/reactive/server/DefaultWebFluxTagsProvider.java
+6
-3
MetricsWebFilter.java
...actuate/metrics/web/reactive/server/MetricsWebFilter.java
+2
-1
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/http/package-info.java
View file @
3d7e5e3a
...
@@ -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
;
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/server/DefaultWebFluxTagsProvider.java
View file @
3d7e5e3a
...
@@ -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
));
}
}
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/server/MetricsWebFilter.java
View file @
3d7e5e3a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment