Remove actuate from restructured metrics package names

This commit is contained in:
Andy Wilkinson
2025-05-28 10:19:08 +01:00
committed by Phillip Webb
parent 8938c809a5
commit 0464bf753f
86 changed files with 130 additions and 107 deletions

View File

@@ -41,8 +41,8 @@ import org.springframework.boot.actuate.autoconfigure.observation.web.servlet.We
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.http.converter.autoconfigure.HttpMessageConvertersAutoConfiguration;
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
import org.springframework.boot.jdbc.actuate.metrics.autoconfigure.DataSourcePoolMetricsAutoConfiguration;
import org.springframework.boot.jpa.hibernate.actuate.metrics.autoconfigure.HibernateMetricsAutoConfiguration;
import org.springframework.boot.jdbc.metrics.autoconfigure.DataSourcePoolMetricsAutoConfiguration;
import org.springframework.boot.jpa.hibernate.metrics.autoconfigure.HibernateMetricsAutoConfiguration;
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
import org.springframework.boot.metrics.autoconfigure.jvm.JvmMetricsAutoConfiguration;
import org.springframework.boot.metrics.autoconfigure.logging.logback.LogbackMetricsAutoConfiguration;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.amqp.actuate.metrics;
package org.springframework.boot.amqp.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.amqp.actuate.metrics.autoconfigure;
package org.springframework.boot.amqp.metrics.autoconfigure;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.MetricsCollector;
@@ -23,7 +23,7 @@ import io.micrometer.core.instrument.Tags;
import org.springframework.amqp.rabbit.connection.AbstractConnectionFactory;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.amqp.actuate.metrics.RabbitMetrics;
import org.springframework.boot.amqp.metrics.RabbitMetrics;
import org.springframework.context.ApplicationContext;
import org.springframework.core.Ordered;
import org.springframework.util.StringUtils;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.amqp.actuate.metrics.autoconfigure;
package org.springframework.boot.amqp.metrics.autoconfigure;
import com.rabbitmq.client.ConnectionFactory;
import io.micrometer.core.instrument.MeterRegistry;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for RabbitMQ metrics.
*/
package org.springframework.boot.amqp.actuate.metrics.autoconfigure;
package org.springframework.boot.amqp.metrics.autoconfigure;

View File

@@ -17,4 +17,4 @@
/**
* Metrics for AMQP and RabbitMQ.
*/
package org.springframework.boot.amqp.actuate.metrics;
package org.springframework.boot.amqp.metrics;

View File

@@ -1,3 +1,3 @@
org.springframework.boot.amqp.actuate.health.autoconfigure.RabbitHealthContributorAutoConfiguration
org.springframework.boot.amqp.actuate.metrics.autoconfigure.RabbitMetricsAutoConfiguration
org.springframework.boot.amqp.autoconfigure.RabbitAutoConfiguration
org.springframework.boot.amqp.metrics.autoconfigure.RabbitMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.amqp.actuate.metrics;
package org.springframework.boot.amqp.metrics;
import com.rabbitmq.client.ConnectionFactory;
import io.micrometer.core.instrument.Tags;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.autoconfigure.metrics.amqp;
package org.springframework.boot.amqp.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.binder.MeterBinder;
@@ -22,7 +22,6 @@ import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.boot.amqp.actuate.metrics.autoconfigure.RabbitMetricsAutoConfiguration;
import org.springframework.boot.amqp.autoconfigure.RabbitAutoConfiguration;
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.autoconfigure.metrics.amqp;
package org.springframework.boot.amqp.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
@@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.boot.amqp.actuate.metrics.autoconfigure.RabbitMetricsAutoConfiguration;
import org.springframework.boot.amqp.autoconfigure.RabbitAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.UUID;
import java.util.function.BiConsumer;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.Collection;
import java.util.Objects;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
@@ -27,7 +27,7 @@ import io.micrometer.core.instrument.binder.cache.HazelcastCacheMetrics;
import org.springframework.aot.hint.ExecutableMode;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import org.springframework.boot.cache.actuate.metrics.HazelcastCacheMeterBinderProvider.HazelcastCacheMeterBinderProviderRuntimeHints;
import org.springframework.boot.cache.metrics.HazelcastCacheMeterBinderProvider.HazelcastCacheMeterBinderProviderRuntimeHints;
import org.springframework.context.annotation.ImportRuntimeHints;
import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.concurrent.TimeUnit;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics.autoconfigure;
package org.springframework.boot.cache.metrics.autoconfigure;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.spring.cache.HazelcastCache;
@@ -24,12 +24,12 @@ import org.cache2k.extra.micrometer.Cache2kCacheMetrics;
import org.cache2k.extra.spring.SpringCache2kCache;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.cache.actuate.metrics.Cache2kCacheMeterBinderProvider;
import org.springframework.boot.cache.actuate.metrics.CacheMeterBinderProvider;
import org.springframework.boot.cache.actuate.metrics.CaffeineCacheMeterBinderProvider;
import org.springframework.boot.cache.actuate.metrics.HazelcastCacheMeterBinderProvider;
import org.springframework.boot.cache.actuate.metrics.JCacheCacheMeterBinderProvider;
import org.springframework.boot.cache.actuate.metrics.RedisCacheMeterBinderProvider;
import org.springframework.boot.cache.metrics.Cache2kCacheMeterBinderProvider;
import org.springframework.boot.cache.metrics.CacheMeterBinderProvider;
import org.springframework.boot.cache.metrics.CaffeineCacheMeterBinderProvider;
import org.springframework.boot.cache.metrics.HazelcastCacheMeterBinderProvider;
import org.springframework.boot.cache.metrics.JCacheCacheMeterBinderProvider;
import org.springframework.boot.cache.metrics.RedisCacheMeterBinderProvider;
import org.springframework.cache.caffeine.CaffeineCache;
import org.springframework.cache.jcache.JCacheCache;
import org.springframework.context.annotation.Bean;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics.autoconfigure;
package org.springframework.boot.cache.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics.autoconfigure;
package org.springframework.boot.cache.metrics.autoconfigure;
import java.util.Collection;
import java.util.Map;
@@ -25,8 +25,8 @@ import io.micrometer.core.instrument.Tag;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.SimpleAutowireCandidateResolver;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.cache.actuate.metrics.CacheMeterBinderProvider;
import org.springframework.boot.cache.actuate.metrics.CacheMetricsRegistrar;
import org.springframework.boot.cache.metrics.CacheMeterBinderProvider;
import org.springframework.boot.cache.metrics.CacheMetricsRegistrar;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.context.annotation.Bean;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for cache metrics.
*/
package org.springframework.boot.cache.actuate.metrics.autoconfigure;
package org.springframework.boot.cache.metrics.autoconfigure;

View File

@@ -17,4 +17,4 @@
/**
* Metrics for caches.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;

View File

@@ -1,3 +1,3 @@
org.springframework.boot.cache.actuate.endpoint.autoconfigure.CachesEndpointAutoConfiguration
org.springframework.boot.cache.actuate.metrics.autoconfigure.CacheMetricsAutoConfiguration
org.springframework.boot.cache.autoconfigure.CacheAutoConfiguration
org.springframework.boot.cache.metrics.autoconfigure.CacheMetricsAutoConfiguration

View File

@@ -25,8 +25,8 @@ import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.cache.actuate.metrics.autoconfigure.CacheMetricsAutoConfiguration;
import org.springframework.boot.cache.autoconfigure.CacheAutoConfiguration;
import org.springframework.boot.cache.metrics.autoconfigure.CacheMetricsAutoConfiguration;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CachingConfigurer;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.Collections;
@@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
import org.springframework.boot.cache.actuate.metrics.HazelcastCacheMeterBinderProvider.HazelcastCacheMeterBinderProviderRuntimeHints;
import org.springframework.boot.cache.metrics.HazelcastCacheMeterBinderProvider.HazelcastCacheMeterBinderProviderRuntimeHints;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.given;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.net.URI;
import java.net.URISyntaxException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cache.actuate.metrics;
package org.springframework.boot.cache.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.data.redis.actuate.metrics.autoconfigure;
package org.springframework.boot.data.redis.metrics.autoconfigure;
import io.lettuce.core.RedisClient;
import io.lettuce.core.metrics.MicrometerCommandLatencyRecorder;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for Redis metrics.
*/
package org.springframework.boot.data.redis.actuate.metrics.autoconfigure;
package org.springframework.boot.data.redis.metrics.autoconfigure;

View File

@@ -1,6 +1,6 @@
org.springframework.boot.data.redis.actuate.health.autoconfigure.RedisHealthContributorAutoConfiguration
org.springframework.boot.data.redis.actuate.health.autoconfigure.RedisReactiveHealthContributorAutoConfiguration
org.springframework.boot.data.redis.actuate.metrics.autoconfigure.LettuceMetricsAutoConfiguration
org.springframework.boot.data.redis.autoconfigure.RedisAutoConfiguration
org.springframework.boot.data.redis.autoconfigure.RedisReactiveAutoConfiguration
org.springframework.boot.data.redis.autoconfigure.RedisRepositoriesAutoConfiguration
org.springframework.boot.data.redis.metrics.autoconfigure.LettuceMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.data.redis.actuate.metrics.autoconfigure;
package org.springframework.boot.data.redis.metrics.autoconfigure;
import io.lettuce.core.metrics.MicrometerCommandLatencyRecorder;
import io.lettuce.core.metrics.MicrometerOptions;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.integration.actuate.metrics.autoconfigure;
package org.springframework.boot.integration.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for Spring Integration metrics.
*/
package org.springframework.boot.integration.actuate.metrics.autoconfigure;
package org.springframework.boot.integration.metrics.autoconfigure;

View File

@@ -1,3 +1,3 @@
org.springframework.boot.integration.actuate.endpoint.autoconfigure.IntegrationGraphEndpointAutoConfiguration
org.springframework.boot.integration.actuate.metrics.autoconfigure.IntegrationMetricsAutoConfiguration
org.springframework.boot.integration.autoconfigure.IntegrationAutoConfiguration
org.springframework.boot.integration.metrics.autoconfigure.IntegrationMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.integration.actuate.metrics.autoconfigure;
package org.springframework.boot.integration.metrics.autoconfigure;
import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.MeterRegistry;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc.actuate.metrics;
package org.springframework.boot.jdbc.metrics;
import java.util.Collection;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc.actuate.metrics.autoconfigure;
package org.springframework.boot.jdbc.metrics.autoconfigure;
import java.util.Collection;
import java.util.Collections;
@@ -39,9 +39,9 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.jdbc.DataSourceUnwrapper;
import org.springframework.boot.jdbc.actuate.metrics.DataSourcePoolMetrics;
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadataProvider;
import org.springframework.boot.jdbc.metrics.DataSourcePoolMetrics;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.log.LogMessage;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for JPA metrics.
*/
package org.springframework.boot.jdbc.actuate.metrics.autoconfigure;
package org.springframework.boot.jdbc.metrics.autoconfigure;

View File

@@ -17,4 +17,4 @@
/**
* Metrics for JDBC.
*/
package org.springframework.boot.jdbc.actuate.metrics;
package org.springframework.boot.jdbc.metrics;

View File

@@ -1,5 +1,4 @@
org.springframework.boot.jdbc.actuate.health.autoconfigure.DataSourceHealthContributorAutoConfiguration
org.springframework.boot.jdbc.actuate.metrics.autoconfigure.DataSourcePoolMetricsAutoConfiguration
org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration
org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration
org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration
@@ -7,3 +6,4 @@ org.springframework.boot.jdbc.autoconfigure.JdbcClientAutoConfiguration
org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration
org.springframework.boot.jdbc.autoconfigure.JndiDataSourceAutoConfiguration
org.springframework.boot.jdbc.autoconfigure.XADataSourceAutoConfiguration
org.springframework.boot.jdbc.metrics.autoconfigure.DataSourcePoolMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc.actuate.metrics;
package org.springframework.boot.jdbc.metrics;
import java.util.Collection;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc.actuate.metrics.autoconfigure;
package org.springframework.boot.jdbc.metrics.autoconfigure;
import java.sql.SQLException;
import java.util.UUID;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jetty.actuate.metrics;
package org.springframework.boot.jetty.metrics;
import org.eclipse.jetty.server.Server;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jetty.actuate.metrics;
package org.springframework.boot.jetty.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jetty.actuate.metrics;
package org.springframework.boot.jetty.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jetty.actuate.metrics;
package org.springframework.boot.jetty.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jetty.actuate.metrics.autoconfigure;
package org.springframework.boot.jetty.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.binder.jetty.JettyConnectionMetrics;
@@ -29,9 +29,9 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProp
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.jetty.actuate.metrics.JettyConnectionMetricsBinder;
import org.springframework.boot.jetty.actuate.metrics.JettyServerThreadPoolMetricsBinder;
import org.springframework.boot.jetty.actuate.metrics.JettySslHandshakeMetricsBinder;
import org.springframework.boot.jetty.metrics.JettyConnectionMetricsBinder;
import org.springframework.boot.jetty.metrics.JettyServerThreadPoolMetricsBinder;
import org.springframework.boot.jetty.metrics.JettySslHandshakeMetricsBinder;
import org.springframework.context.annotation.Bean;
/**

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for Jetty actuator metrics.
*/
package org.springframework.boot.jetty.actuate.metrics.autoconfigure;
package org.springframework.boot.jetty.metrics.autoconfigure;

View File

@@ -17,4 +17,4 @@
/**
* Actuator support for Jetty metrics.
*/
package org.springframework.boot.jetty.actuate.metrics;
package org.springframework.boot.jetty.metrics;

View File

@@ -1,5 +1,5 @@
org.springframework.boot.jetty.actuate.autoconfigure.web.server.JettyReactiveManagementContextAutoConfiguration
org.springframework.boot.jetty.actuate.autoconfigure.web.server.JettyServletManagementContextAutoConfiguration
org.springframework.boot.jetty.actuate.metrics.autoconfigure.JettyMetricsAutoConfiguration
org.springframework.boot.jetty.autoconfigure.reactive.JettyReactiveWebServerAutoConfiguration
org.springframework.boot.jetty.autoconfigure.servlet.JettyServletWebServerAutoConfiguration
org.springframework.boot.jetty.autoconfigure.servlet.JettyServletWebServerAutoConfiguration
org.springframework.boot.jetty.metrics.autoconfigure.JettyMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jetty.actuate.metrics.autoconfigure;
package org.springframework.boot.jetty.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tags;
@@ -25,11 +25,11 @@ import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.boot.jetty.actuate.metrics.JettyConnectionMetricsBinder;
import org.springframework.boot.jetty.actuate.metrics.JettyServerThreadPoolMetricsBinder;
import org.springframework.boot.jetty.actuate.metrics.JettySslHandshakeMetricsBinder;
import org.springframework.boot.jetty.autoconfigure.reactive.JettyReactiveWebServerAutoConfiguration;
import org.springframework.boot.jetty.autoconfigure.servlet.JettyServletWebServerAutoConfiguration;
import org.springframework.boot.jetty.metrics.JettyConnectionMetricsBinder;
import org.springframework.boot.jetty.metrics.JettyServerThreadPoolMetricsBinder;
import org.springframework.boot.jetty.metrics.JettySslHandshakeMetricsBinder;
import org.springframework.boot.jetty.reactive.JettyReactiveWebServerFactory;
import org.springframework.boot.jetty.servlet.JettyServletWebServerFactory;
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jpa.hibernate.actuate.metrics.autoconfigure;
package org.springframework.boot.jpa.hibernate.metrics.autoconfigure;
import java.util.Collections;
import java.util.Map;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for Hibernate metrics.
*/
package org.springframework.boot.jpa.hibernate.actuate.metrics.autoconfigure;
package org.springframework.boot.jpa.hibernate.metrics.autoconfigure;

View File

@@ -1,2 +1,2 @@
org.springframework.boot.jpa.autoconfigure.hibernate.HibernateJpaAutoConfiguration
org.springframework.boot.jpa.hibernate.actuate.metrics.autoconfigure.HibernateMetricsAutoConfiguration
org.springframework.boot.jpa.hibernate.metrics.autoconfigure.HibernateMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jpa.hibernate.actuate.metrics.autoconfigure;
package org.springframework.boot.jpa.hibernate.metrics.autoconfigure;
import java.util.Map;
import java.util.function.Function;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.kafka.autoconfigure.metrics;
package org.springframework.boot.kafka.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.binder.kafka.KafkaClientMetrics;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for Apache Kafka metrics.
*/
package org.springframework.boot.kafka.autoconfigure.metrics;
package org.springframework.boot.kafka.metrics.autoconfigure;

View File

@@ -1,2 +1,2 @@
org.springframework.boot.kafka.autoconfigure.KafkaAutoConfiguration
org.springframework.boot.kafka.autoconfigure.metrics.KafkaMetricsAutoConfiguration
org.springframework.boot.kafka.metrics.autoconfigure.KafkaMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.kafka.autoconfigure.metrics;
package org.springframework.boot.kafka.metrics.autoconfigure;
import java.util.regex.Pattern;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.mongodb.actuate.metrics.autoconfigure;
package org.springframework.boot.mongodb.metrics.autoconfigure;
import com.mongodb.MongoClientSettings;
import io.micrometer.core.instrument.MeterRegistry;

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for MongoDB metrics.
*/
package org.springframework.boot.mongodb.actuate.metrics.autoconfigure;
package org.springframework.boot.mongodb.metrics.autoconfigure;

View File

@@ -1,3 +1,3 @@
org.springframework.boot.mongodb.actuate.metrics.autoconfigure.MongoMetricsAutoConfiguration
org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration
org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration
org.springframework.boot.mongodb.metrics.autoconfigure.MongoMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.mongodb.actuate.metrics.autoconfigure;
package org.springframework.boot.mongodb.metrics.autoconfigure;
import java.util.List;

View File

@@ -0,0 +1,21 @@
plugins {
id "java-library"
id "org.springframework.boot.auto-configuration"
id "org.springframework.boot.configuration-properties"
id "org.springframework.boot.deployed"
id "org.springframework.boot.optional-dependencies"
}
description = "Spring Boot Observation"
dependencies {
api(project(":spring-boot-project:spring-boot"))
api("io.micrometer:micrometer-observation")
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
testImplementation(project(":spring-boot-project:spring-boot-test"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testRuntimeOnly("ch.qos.logback:logback-classic")
}

View File

@@ -0,0 +1,4 @@
{
"groups": [],
"properties": []
}

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.r2dbc.actuate.metrics;
package org.springframework.boot.r2dbc.metrics;
import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.Gauge.Builder;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.r2dbc.actuate.metrics.autoconfigure;
package org.springframework.boot.r2dbc.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tags;
@@ -29,8 +29,8 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.r2dbc.actuate.metrics.ConnectionPoolMetrics;
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
import org.springframework.boot.r2dbc.metrics.ConnectionPoolMetrics;
/**
* {@link EnableAutoConfiguration Auto-configuration} for metrics on all available

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for R2DBC metrics.
*/
package org.springframework.boot.r2dbc.actuate.metrics.autoconfigure;
package org.springframework.boot.r2dbc.metrics.autoconfigure;

View File

@@ -17,4 +17,4 @@
/**
* Metrics for R2DBC.
*/
package org.springframework.boot.r2dbc.actuate.metrics;
package org.springframework.boot.r2dbc.metrics;

View File

@@ -1,5 +1,5 @@
org.springframework.boot.r2dbc.actuate.metrics.autoconfigure.ConnectionPoolMetricsAutoConfiguration
org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration
org.springframework.boot.r2dbc.autoconfigure.R2dbcInitializationAutoConfiguration
org.springframework.boot.r2dbc.autoconfigure.R2dbcProxyAutoConfiguration
org.springframework.boot.r2dbc.autoconfigure.R2dbcTransactionManagerAutoConfiguration
org.springframework.boot.r2dbc.metrics.autoconfigure.ConnectionPoolMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.r2dbc.actuate.metrics;
package org.springframework.boot.r2dbc.metrics;
import java.time.Duration;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.r2dbc.actuate.metrics.autoconfigure;
package org.springframework.boot.r2dbc.metrics.autoconfigure;
import java.util.Collections;
import java.util.UUID;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.tomcat.actuate.metrics;
package org.springframework.boot.tomcat.metrics;
import java.util.Collections;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.tomcat.actuate.metrics.autoconfigure;
package org.springframework.boot.tomcat.metrics.autoconfigure;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.binder.tomcat.TomcatMetrics;
@@ -26,7 +26,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.tomcat.actuate.metrics.TomcatMetricsBinder;
import org.springframework.boot.tomcat.metrics.TomcatMetricsBinder;
import org.springframework.context.annotation.Bean;
/**

View File

@@ -17,4 +17,4 @@
/**
* Auto-configuration for Tomcat actuator metrics.
*/
package org.springframework.boot.tomcat.actuate.metrics.autoconfigure;
package org.springframework.boot.tomcat.metrics.autoconfigure;

View File

@@ -17,4 +17,4 @@
/**
* Tomcat metrics.
*/
package org.springframework.boot.tomcat.actuate.metrics;
package org.springframework.boot.tomcat.metrics;

View File

@@ -1,5 +1,5 @@
org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatReactiveManagementContextAutoConfiguration
org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatServletManagementContextAutoConfiguration
org.springframework.boot.tomcat.actuate.metrics.autoconfigure.TomcatMetricsAutoConfiguration
org.springframework.boot.tomcat.autoconfigure.reactive.TomcatReactiveWebServerAutoConfiguration
org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration
org.springframework.boot.tomcat.metrics.autoconfigure.TomcatMetricsAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.tomcat.actuate.metrics;
package org.springframework.boot.tomcat.metrics;
import io.micrometer.core.instrument.MeterRegistry;
import org.junit.jupiter.api.Test;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.tomcat.actuate.metrics.autoconfigure;
package org.springframework.boot.tomcat.metrics.autoconfigure;
import java.util.Collections;
import java.util.concurrent.atomic.AtomicInteger;
@@ -31,9 +31,9 @@ import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
import org.springframework.boot.tomcat.TomcatWebServer;
import org.springframework.boot.tomcat.actuate.metrics.TomcatMetricsBinder;
import org.springframework.boot.tomcat.autoconfigure.reactive.TomcatReactiveWebServerAutoConfiguration;
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
import org.springframework.boot.tomcat.metrics.TomcatMetricsBinder;
import org.springframework.boot.tomcat.reactive.TomcatReactiveWebServerFactory;
import org.springframework.boot.tomcat.servlet.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.reactive.context.AnnotationConfigReactiveWebServerApplicationContext;