Polish contribution
`InfoProvider` is now `InfoContributor` and contributes to the `Info` instance via a builder. The `Info` instance is immutable. Each contributor can be disabled via the `management.info.<name>.enabled` key or all can be disabled using `management.info.defaults.enabled` (this is similar to what the health endpoint does). By default, all keys from the environment starting with `info.` are exposed. If a `git.properties` file is present in the classpath, the content of `GitInfo` is exposed using the `git` key. A `SimpleInfoContributor` and `AbstractEnvironmentInfoContributor` are available for convenience. `InfoContributor` instances can be ordered the usual way, with a default order provided by `InfoProviderAutoConfiguration#DEFAULT_ORDER`. Closes gh-3492
This commit is contained in:
@@ -884,6 +884,11 @@ content into your application; rather pick only the properties that you need.
|
||||
management.health.solr.enabled=true # Enable Solr health check.
|
||||
management.health.status.order=DOWN, OUT_OF_SERVICE, UNKNOWN, UP # Comma-separated list of health statuses in order of severity.
|
||||
|
||||
# INFO CONTRIBUTORS
|
||||
management.info.defaults.enabled=true # Enable default health indicators.
|
||||
management.info.env.enabled=true # Enable environment info.
|
||||
management.info.git.enabled=true # Enable git info.
|
||||
|
||||
# TRACING (({sc-spring-boot-actuator}/trace/TraceProperties.{sc-ext}[TraceProperties])
|
||||
management.trace.include=request-headers,response-headers,errors # Items to be included in the trace.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user