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
441dd2bc
Commit
441dd2bc
authored
Aug 29, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move endpoints.trace.filter to management.trace.filter
Closes gh-10007
parent
54781c73
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
TraceWebFilterAutoConfiguration.java
.../autoconfigure/trace/TraceWebFilterAutoConfiguration.java
+1
-1
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+14
-4
TraceWebFilterAutoConfigurationTests.java
...configure/trace/TraceWebFilterAutoConfigurationTests.java
+1
-1
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/trace/TraceWebFilterAutoConfiguration.java
View file @
441dd2bc
...
...
@@ -45,7 +45,7 @@ import org.springframework.web.servlet.DispatcherServlet;
@Configuration
@ConditionalOnClass
({
Servlet
.
class
,
DispatcherServlet
.
class
,
ServletRegistration
.
class
})
@AutoConfigureAfter
(
TraceRepositoryAutoConfiguration
.
class
)
@ConditionalOnProperty
(
prefix
=
"
endpoints
.trace.filter"
,
name
=
"enabled"
,
matchIfMissing
=
true
)
@ConditionalOnProperty
(
prefix
=
"
management
.trace.filter"
,
name
=
"enabled"
,
matchIfMissing
=
true
)
@EnableConfigurationProperties
(
TraceProperties
.
class
)
public
class
TraceWebFilterAutoConfiguration
{
...
...
spring-boot-actuator/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
441dd2bc
...
...
@@ -76,7 +76,11 @@
"name"
:
"endpoints.trace.filter.enabled"
,
"type"
:
"java.lang.Boolean"
,
"description"
:
"Enable the trace servlet filter."
,
"defaultValue"
:
true
"defaultValue"
:
true
,
"deprecation"
:
{
"replacement"
:
"management.trace.filter.enabled"
,
"level"
:
"error"
}
},
{
"name"
:
"info"
,
...
...
@@ -217,6 +221,12 @@
"name"
:
"management.security.sessions"
,
"defaultValue"
:
"stateless"
},
{
"name"
:
"management.trace.filter.enabled"
,
"type"
:
"java.lang.Boolean"
,
"description"
:
"Enable the trace servlet filter."
,
"defaultValue"
:
true
},
{
"name"
:
"spring.git.properties"
,
"type"
:
"java.lang.String"
,
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/trace/TraceWebFilterAutoConfigurationTests.java
View file @
441dd2bc
...
...
@@ -64,7 +64,7 @@ public class TraceWebFilterAutoConfigurationTests {
@Test
public
void
skipsFilterIfPropertyDisabled
()
throws
Exception
{
load
(
"
endpoints
.trace.filter.enabled:false"
);
load
(
"
management
.trace.filter.enabled:false"
);
assertThat
(
this
.
context
.
getBeansOfType
(
WebRequestTraceFilter
.
class
).
size
())
.
isEqualTo
(
0
);
}
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
441dd2bc
...
...
@@ -1195,7 +1195,6 @@ content into your application; rather pick only the properties that you need.
# TRACE ENDPOINT ({sc-spring-boot-actuator}/endpoint/TraceEndpoint.{sc-ext}[TraceEndpoint])
endpoints.trace.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
endpoints.trace.enabled=true # Enable the trace endpoint.
endpoints.trace.filter.enabled=true # Enable the trace servlet filter.
endpoints.trace.jmx.enabled=true # Expose the trace endpoint as a JMX MBean.
endpoints.trace.web.enabled=false # Expose the trace endpoint as a Web endpoint.
...
...
@@ -1280,6 +1279,7 @@ content into your application; rather pick only the properties that you need.
management.metrics.filter.gauge-submissions= # Submissions that should be made to the gauge.
# TRACING ({sc-spring-boot-actuator}/trace/TraceProperties.{sc-ext}[TraceProperties])
management.trace.filter.enabled=true # Enable the trace servlet filter.
management.trace.include=request-headers,response-headers,cookies,errors # Items to be included in the trace.
# METRICS EXPORT ({sc-spring-boot-actuator}/metrics/export/MetricExportProperties.{sc-ext}[MetricExportProperties])
...
...
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