parent
d4d169277d
commit
bb60edaca6
|
|
@ -68,7 +68,7 @@ import org.springframework.core.env.Environment;
|
|||
*
|
||||
* <pre class="code">
|
||||
* @EndpointWebExtension(endpoint = MyEndpoint.class)
|
||||
* class MyEndpointWebExtension {
|
||||
* public class MyEndpointWebExtension {
|
||||
*
|
||||
* }</pre>
|
||||
* <p>
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ public class WebClientMetricsAutoConfigurationTests {
|
|||
this.contextRunner.withUserConfiguration(CustomTagsProviderConfig.class)
|
||||
.run((context) -> assertThat(context)
|
||||
.getBeans(WebClientExchangeTagsProvider.class).hasSize(1)
|
||||
.containsKey("customTagProvider"));
|
||||
.containsKey("customTagsProvider"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -113,7 +113,7 @@ public class WebClientMetricsAutoConfigurationTests {
|
|||
protected static class CustomTagsProviderConfig {
|
||||
|
||||
@Bean
|
||||
public WebClientExchangeTagsProvider customTagProvider() {
|
||||
public WebClientExchangeTagsProvider customTagsProvider() {
|
||||
return mock(WebClientExchangeTagsProvider.class);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -270,8 +270,8 @@ public class JacksonAutoConfiguration {
|
|||
}
|
||||
|
||||
private void configureVisibility(Jackson2ObjectMapperBuilder builder,
|
||||
Map<PropertyAccessor, JsonAutoDetect.Visibility> accessors) {
|
||||
accessors.forEach(builder::visibility);
|
||||
Map<PropertyAccessor, JsonAutoDetect.Visibility> visibilities) {
|
||||
visibilities.forEach(builder::visibility);
|
||||
}
|
||||
|
||||
private void configureDateFormat(Jackson2ObjectMapperBuilder builder) {
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class HibernateProperties {
|
|||
* Determine the configuration properties for the initialization of the main Hibernate
|
||||
* EntityManagerFactory based on standard JPA properties and
|
||||
* {@link HibernateSettings}.
|
||||
* @param jpaProperties standard jpa properties
|
||||
* @param jpaProperties standard JPA properties
|
||||
* @param settings the settings to apply when determining the configuration properties
|
||||
* @return the Hibernate properties to use
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1867,8 +1867,8 @@ include::{code-examples}/actuate/metrics/MetricsFilterBeanExample.java[tag=confi
|
|||
|
||||
[[production-ready-metrics-common-tags]]
|
||||
==== Common tags
|
||||
Common tag 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
|
||||
Common tags are generally used for dimensional drill-down on the operating environment like
|
||||
host, instance, region, stack, etc. Commons tags are applied to all meters and can be
|
||||
configured as shown in the following example:
|
||||
|
||||
[source,properties,indent=0]
|
||||
|
|
@ -1877,7 +1877,7 @@ configured as shown in the following example:
|
|||
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.
|
||||
|
||||
NOTE: The order of common tags is important if you are using Graphite. As the order of
|
||||
|
|
|
|||
Loading…
Reference in New Issue