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
3bbdeee7
Commit
3bbdeee7
authored
May 29, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
188ba14c
c2315f2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
WebFluxTags.java
...boot/actuate/metrics/web/reactive/server/WebFluxTags.java
+12
-3
WebMvcTags.java
...ramework/boot/actuate/metrics/web/servlet/WebMvcTags.java
+6
-1
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTags.java
View file @
3bbdeee7
...
...
@@ -37,6 +37,12 @@ public final class WebFluxTags {
private
static
final
Tag
URI_REDIRECTION
=
Tag
.
of
(
"uri"
,
"REDIRECTION"
);
private
static
final
Tag
URI_ROOT
=
Tag
.
of
(
"uri"
,
"root"
);
private
static
final
Tag
URI_UNKNOWN
=
Tag
.
of
(
"uri"
,
"UNKNOWN"
);
private
static
final
Tag
EXCEPTION_NONE
=
Tag
.
of
(
"exception"
,
"None"
);
private
WebFluxTags
()
{
}
...
...
@@ -87,9 +93,12 @@ public final class WebFluxTags {
return
URI_NOT_FOUND
;
}
String
path
=
exchange
.
getRequest
().
getPath
().
value
();
return
Tag
.
of
(
"uri"
,
path
.
isEmpty
()
?
"root"
:
path
);
if
(
path
.
isEmpty
())
{
return
URI_ROOT
;
}
return
Tag
.
of
(
"uri"
,
path
);
}
return
Tag
.
of
(
"uri"
,
"UNKNOWN"
)
;
return
URI_UNKNOWN
;
}
/**
...
...
@@ -102,7 +111,7 @@ public final class WebFluxTags {
if
(
exception
!=
null
)
{
return
Tag
.
of
(
"exception"
,
exception
.
getClass
().
getSimpleName
());
}
return
Tag
.
of
(
"exception"
,
"none"
)
;
return
EXCEPTION_NONE
;
}
}
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcTags.java
View file @
3bbdeee7
...
...
@@ -40,6 +40,8 @@ public final class WebMvcTags {
private
static
final
Tag
URI_REDIRECTION
=
Tag
.
of
(
"uri"
,
"REDIRECTION"
);
private
static
final
Tag
URI_ROOT
=
Tag
.
of
(
"uri"
,
"root"
);
private
static
final
Tag
URI_UNKNOWN
=
Tag
.
of
(
"uri"
,
"UNKNOWN"
);
private
static
final
Tag
EXCEPTION_NONE
=
Tag
.
of
(
"exception"
,
"None"
);
...
...
@@ -97,7 +99,10 @@ public final class WebMvcTags {
}
}
String
pathInfo
=
getPathInfo
(
request
);
return
Tag
.
of
(
"uri"
,
pathInfo
.
isEmpty
()
?
"root"
:
pathInfo
);
if
(
pathInfo
.
isEmpty
())
{
return
URI_ROOT
;
}
return
Tag
.
of
(
"uri"
,
pathInfo
);
}
return
URI_UNKNOWN
;
}
...
...
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