Commit bb60edac authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Polish

Closes gh-13534
parent d4d16927
...@@ -68,7 +68,7 @@ import org.springframework.core.env.Environment; ...@@ -68,7 +68,7 @@ import org.springframework.core.env.Environment;
* *
* <pre class="code"> * <pre class="code">
* &#064;EndpointWebExtension(endpoint = MyEndpoint.class) * &#064;EndpointWebExtension(endpoint = MyEndpoint.class)
* class MyEndpointWebExtension { * public class MyEndpointWebExtension {
* *
* }</pre> * }</pre>
* <p> * <p>
......
...@@ -83,7 +83,7 @@ public class WebClientMetricsAutoConfigurationTests { ...@@ -83,7 +83,7 @@ public class WebClientMetricsAutoConfigurationTests {
this.contextRunner.withUserConfiguration(CustomTagsProviderConfig.class) this.contextRunner.withUserConfiguration(CustomTagsProviderConfig.class)
.run((context) -> assertThat(context) .run((context) -> assertThat(context)
.getBeans(WebClientExchangeTagsProvider.class).hasSize(1) .getBeans(WebClientExchangeTagsProvider.class).hasSize(1)
.containsKey("customTagProvider")); .containsKey("customTagsProvider"));
} }
@Test @Test
...@@ -113,7 +113,7 @@ public class WebClientMetricsAutoConfigurationTests { ...@@ -113,7 +113,7 @@ public class WebClientMetricsAutoConfigurationTests {
protected static class CustomTagsProviderConfig { protected static class CustomTagsProviderConfig {
@Bean @Bean
public WebClientExchangeTagsProvider customTagProvider() { public WebClientExchangeTagsProvider customTagsProvider() {
return mock(WebClientExchangeTagsProvider.class); return mock(WebClientExchangeTagsProvider.class);
} }
......
...@@ -270,8 +270,8 @@ public class JacksonAutoConfiguration { ...@@ -270,8 +270,8 @@ public class JacksonAutoConfiguration {
} }
private void configureVisibility(Jackson2ObjectMapperBuilder builder, private void configureVisibility(Jackson2ObjectMapperBuilder builder,
Map<PropertyAccessor, JsonAutoDetect.Visibility> accessors) { Map<PropertyAccessor, JsonAutoDetect.Visibility> visibilities) {
accessors.forEach(builder::visibility); visibilities.forEach(builder::visibility);
} }
private void configureDateFormat(Jackson2ObjectMapperBuilder builder) { private void configureDateFormat(Jackson2ObjectMapperBuilder builder) {
......
...@@ -80,7 +80,7 @@ public class HibernateProperties { ...@@ -80,7 +80,7 @@ public class HibernateProperties {
* Determine the configuration properties for the initialization of the main Hibernate * Determine the configuration properties for the initialization of the main Hibernate
* EntityManagerFactory based on standard JPA properties and * EntityManagerFactory based on standard JPA properties and
* {@link HibernateSettings}. * {@link HibernateSettings}.
* @param jpaProperties standard jpa properties * @param jpaProperties standard JPA properties
* @param settings the settings to apply when determining the configuration properties * @param settings the settings to apply when determining the configuration properties
* @return the Hibernate properties to use * @return the Hibernate properties to use
*/ */
......
...@@ -1867,8 +1867,8 @@ include::{code-examples}/actuate/metrics/MetricsFilterBeanExample.java[tag=confi ...@@ -1867,8 +1867,8 @@ include::{code-examples}/actuate/metrics/MetricsFilterBeanExample.java[tag=confi
[[production-ready-metrics-common-tags]] [[production-ready-metrics-common-tags]]
==== Common tags ==== Common tags
Common tag are generally used for dimensional drill-down on the operating environment like Common tags are generally used for dimensional drill-down on the operating environment like
host, instance, region, stack, etc. Commons tags applied to all meters and can be host, instance, region, stack, etc. Commons tags are applied to all meters and can be
configured as shown in the following example: configured as shown in the following example:
[source,properties,indent=0] [source,properties,indent=0]
...@@ -1877,7 +1877,7 @@ configured as shown in the following example: ...@@ -1877,7 +1877,7 @@ configured as shown in the following example:
management.metrics.tags.stack=prod management.metrics.tags.stack=prod
---- ----
The example above adds a `region` and `stack` tags to all meters with a value of The example above adds `region` and `stack` tags to all meters with a value of
`us-east-1` and `prod` respectively. `us-east-1` and `prod` respectively.
NOTE: The order of common tags is important if you are using Graphite. As the order of NOTE: The order of common tags is important if you are using Graphite. As the order of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment