Closes gh-14843
pull/14843/merge
Johnny Lim 6 years ago committed by Stephane Nicoll
parent 39f8b685df
commit 7f9671fd14

@ -35,6 +35,7 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.metrics.JvmMetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.JvmMetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.LogbackMetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.SystemMetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.SystemMetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.amqp.RabbitMetricsAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.metrics.amqp.RabbitMetricsAutoConfiguration;
@ -142,7 +143,7 @@ public class MetricsIntegrationTests {
@Configuration @Configuration
@ImportAutoConfiguration({ MetricsAutoConfiguration.class, @ImportAutoConfiguration({ MetricsAutoConfiguration.class,
JvmMetricsAutoConfiguration.class, LogbackMetrics.class, JvmMetricsAutoConfiguration.class, LogbackMetricsAutoConfiguration.class,
SystemMetricsAutoConfiguration.class, RabbitMetricsAutoConfiguration.class, SystemMetricsAutoConfiguration.class, RabbitMetricsAutoConfiguration.class,
CacheMetricsAutoConfiguration.class, CacheMetricsAutoConfiguration.class,
DataSourcePoolMetricsAutoConfiguration.class, DataSourcePoolMetricsAutoConfiguration.class,

@ -47,7 +47,7 @@ public final class HttpTrace {
private volatile Long timeTaken; private volatile Long timeTaken;
/** /**
* Creates a fully-configured {@code HttpTrace} instance. Primarly for use by * Creates a fully-configured {@code HttpTrace} instance. Primarily for use by
* {@link HttpTraceRepository} implementations when recreating a trace from a * {@link HttpTraceRepository} implementations when recreating a trace from a
* persistent store. * persistent store.
* @param request the request * @param request the request
@ -137,7 +137,7 @@ public final class HttpTrace {
} }
/** /**
* Creates a fully-configured {@code Request} instance. Primarly for use by * Creates a fully-configured {@code Request} instance. Primarily for use by
* {@link HttpTraceRepository} implementations when recreating a request from a * {@link HttpTraceRepository} implementations when recreating a request from a
* persistent store. * persistent store.
* @param method the HTTP method of the request * @param method the HTTP method of the request
@ -186,7 +186,7 @@ public final class HttpTrace {
} }
/** /**
* Creates a fully-configured {@code Response} instance. Primarly for use by * Creates a fully-configured {@code Response} instance. Primarily for use by
* {@link HttpTraceRepository} implementations when recreating a response from a * {@link HttpTraceRepository} implementations when recreating a response from a
* persistent store. * persistent store.
* @param status the status of the response * @param status the status of the response

@ -585,12 +585,12 @@ public class HibernateJpaAutoConfigurationTests
static class AsyncBootstrappingConfiguration { static class AsyncBootstrappingConfiguration {
@Bean @Bean
ThreadPoolTaskExecutor ThreadPoolTaskExecutor() { public ThreadPoolTaskExecutor ThreadPoolTaskExecutor() {
return new ThreadPoolTaskExecutor(); return new ThreadPoolTaskExecutor();
} }
@Bean @Bean
public EntityManagerFactoryBuilderCustomizer asyncBoostrappingCustomizer( public EntityManagerFactoryBuilderCustomizer asyncBootstrappingCustomizer(
ThreadPoolTaskExecutor executor) { ThreadPoolTaskExecutor executor) {
return (builder) -> { return (builder) -> {
builder.setBootstrapExecutor(executor); builder.setBootstrapExecutor(executor);

@ -1537,7 +1537,7 @@ content into your application. Rather, pick only the properties that you need.
management.metrics.tags.*= # Common tags that are applied to every meter. management.metrics.tags.*= # Common tags that are applied to every meter.
management.metrics.web.client.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter. management.metrics.web.client.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter.
management.metrics.web.client.requests-metric-name=http.client.requests # Name of the metric for sent requests. management.metrics.web.client.requests-metric-name=http.client.requests # Name of the metric for sent requests.
management.metrics.web.server.auto-time-requests=true # Whether requests handled by Spring MVC or WebFlux should be automatically timed. management.metrics.web.server.auto-time-requests=true # Whether requests handled by Spring MVC, WebFlux or Jersey should be automatically timed.
management.metrics.web.server.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter. management.metrics.web.server.max-uri-tags=100 # Maximum number of unique URI tag values allowed. After the max number of tag values is reached, metrics with additional tag values are denied by filter.
management.metrics.web.server.requests-metric-name=http.server.requests # Name of the metric for received requests. management.metrics.web.server.requests-metric-name=http.server.requests # Name of the metric for received requests.

@ -637,11 +637,11 @@ have been added for those.
}, },
{ {
"value": "sql", "value": "sql",
"description": "SQL logging groups including Hibernate SQL logger." "description": "SQL logging group including Hibernate SQL logger."
}, },
{ {
"value": "web", "value": "web",
"description": "Web logging groups including codecs." "description": "Web logging group including codecs."
} }
], ],
"providers": [ "providers": [

@ -2025,7 +2025,7 @@ By default, Spring Boot registers a `BeanContainer` implementation that uses the
injection. injection.
You can disable or tune this behaviour by registering a `HibernatePropertiesCustomizer` You can disable or tune this behaviour by registering a `HibernatePropertiesCustomizer`
that remove or change the `hibernate.resource.beans.container` property. that removes or changes the `hibernate.resource.beans.container` property.

@ -359,11 +359,11 @@
}, },
{ {
"value": "sql", "value": "sql",
"description": "SQL logging groups including Hibernate SQL logger." "description": "SQL logging group including Hibernate SQL logger."
}, },
{ {
"value": "web", "value": "web",
"description": "Web logging groups including codecs." "description": "Web logging group including codecs."
} }
], ],
"providers": [ "providers": [

Loading…
Cancel
Save