Rename metrics, observation, and tracing modules
Rename modules to include 'micrometer'. Closes gh-46925
This commit is contained in:
parent
bd1df38ce0
commit
7140be8751
|
@ -95,12 +95,13 @@ def dependenciesOf(String version) {
|
||||||
"spring-boot-ldap",
|
"spring-boot-ldap",
|
||||||
"spring-boot-liquibase",
|
"spring-boot-liquibase",
|
||||||
"spring-boot-mail",
|
"spring-boot-mail",
|
||||||
"spring-boot-metrics",
|
"spring-boot-micrometer-metrics",
|
||||||
|
"spring-boot-micrometer-observation",
|
||||||
|
"spring-boot-micrometer-tracing",
|
||||||
"spring-boot-mongodb",
|
"spring-boot-mongodb",
|
||||||
"spring-boot-mustache",
|
"spring-boot-mustache",
|
||||||
"spring-boot-neo4j",
|
"spring-boot-neo4j",
|
||||||
"spring-boot-netty",
|
"spring-boot-netty",
|
||||||
"spring-boot-observation",
|
|
||||||
"spring-boot-opentelemetry",
|
"spring-boot-opentelemetry",
|
||||||
"spring-boot-pulsar",
|
"spring-boot-pulsar",
|
||||||
"spring-boot-quartz",
|
"spring-boot-quartz",
|
||||||
|
@ -126,7 +127,6 @@ def dependenciesOf(String version) {
|
||||||
"spring-boot-testcontainers",
|
"spring-boot-testcontainers",
|
||||||
"spring-boot-thymeleaf",
|
"spring-boot-thymeleaf",
|
||||||
"spring-boot-tomcat",
|
"spring-boot-tomcat",
|
||||||
"spring-boot-tracing",
|
|
||||||
"spring-boot-tx",
|
"spring-boot-tx",
|
||||||
"spring-boot-validation",
|
"spring-boot-validation",
|
||||||
"spring-boot-web-server",
|
"spring-boot-web-server",
|
||||||
|
|
|
@ -32,7 +32,7 @@ dependencies {
|
||||||
testImplementation(project(":module:spring-boot-jackson"))
|
testImplementation(project(":module:spring-boot-jackson"))
|
||||||
testImplementation(project(":module:spring-boot-jdbc"))
|
testImplementation(project(":module:spring-boot-jdbc"))
|
||||||
testImplementation(project(":module:spring-boot-liquibase"))
|
testImplementation(project(":module:spring-boot-liquibase"))
|
||||||
testImplementation(project(":module:spring-boot-metrics"))
|
testImplementation(project(":module:spring-boot-micrometer-metrics"))
|
||||||
testImplementation(project(":module:spring-boot-quartz"))
|
testImplementation(project(":module:spring-boot-quartz"))
|
||||||
testImplementation(project(":module:spring-boot-reactor-netty"))
|
testImplementation(project(":module:spring-boot-reactor-netty"))
|
||||||
testImplementation(project(":module:spring-boot-session"))
|
testImplementation(project(":module:spring-boot-session"))
|
||||||
|
|
|
@ -22,7 +22,7 @@ import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.boot.actuate.docs.MockMvcEndpointDocumentationTests;
|
import org.springframework.boot.actuate.docs.MockMvcEndpointDocumentationTests;
|
||||||
import org.springframework.boot.metrics.actuate.endpoint.MetricsEndpoint;
|
import org.springframework.boot.micrometer.metrics.actuate.endpoint.MetricsEndpoint;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ dependencies {
|
||||||
implementation(project(path: ":module:spring-boot-jms"))
|
implementation(project(path: ":module:spring-boot-jms"))
|
||||||
implementation(project(path: ":module:spring-boot-jsonb"))
|
implementation(project(path: ":module:spring-boot-jsonb"))
|
||||||
implementation(project(path: ":module:spring-boot-ldap"))
|
implementation(project(path: ":module:spring-boot-ldap"))
|
||||||
implementation(project(path: ":module:spring-boot-metrics"))
|
implementation(project(path: ":module:spring-boot-micrometer-metrics"))
|
||||||
implementation(project(path: ":module:spring-boot-r2dbc"))
|
implementation(project(path: ":module:spring-boot-r2dbc"))
|
||||||
implementation(project(path: ":module:spring-boot-reactor-netty"))
|
implementation(project(path: ":module:spring-boot-reactor-netty"))
|
||||||
implementation(project(path: ":module:spring-boot-restclient"))
|
implementation(project(path: ":module:spring-boot-restclient"))
|
||||||
|
|
|
@ -138,7 +138,7 @@ Tracing with OpenTelemetry and reporting using OTLP requires the following depen
|
||||||
|
|
||||||
Use the `management.otlp.tracing.*` configuration properties to configure reporting using OTLP.
|
Use the `management.otlp.tracing.*` configuration properties to configure reporting using OTLP.
|
||||||
|
|
||||||
NOTE: If you need to apply advanced customizations to OTLP span exporters, consider registering javadoc:org.springframework.boot.tracing.autoconfigure.otlp.OtlpHttpSpanExporterBuilderCustomizer[] or javadoc:org.springframework.boot.tracing.autoconfigure.otlp.OtlpGrpcSpanExporterBuilderCustomizer[] beans.
|
NOTE: If you need to apply advanced customizations to OTLP span exporters, consider registering javadoc:org.springframework.boot.micrometer.tracing.autoconfigure.otlp.OtlpHttpSpanExporterBuilderCustomizer[] or javadoc:org.springframework.boot.micrometer.tracing.autoconfigure.otlp.OtlpGrpcSpanExporterBuilderCustomizer[] beans.
|
||||||
These will be invoked before the creation of the `OtlpHttpSpanExporter` or `OtlpGrpcSpanExporter`.
|
These will be invoked before the creation of the `OtlpHttpSpanExporter` or `OtlpGrpcSpanExporter`.
|
||||||
The customizers take precedence over anything applied by the auto-configuration.
|
The customizers take precedence over anything applied by the auto-configuration.
|
||||||
|
|
||||||
|
|
|
@ -113,10 +113,10 @@ The following service connections are currently supported:
|
||||||
| javadoc:org.springframework.boot.opentelemetry.actuate.autoconfigure.logging.OpenTelemetryLoggingConnectionDetails[]
|
| javadoc:org.springframework.boot.opentelemetry.actuate.autoconfigure.logging.OpenTelemetryLoggingConnectionDetails[]
|
||||||
| Containers named "otel/opentelemetry-collector-contrib", "grafana/otel-lgtm"
|
| Containers named "otel/opentelemetry-collector-contrib", "grafana/otel-lgtm"
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails[]
|
| javadoc:org.springframework.boot.micrometer.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails[]
|
||||||
| Containers named "otel/opentelemetry-collector-contrib", "grafana/otel-lgtm"
|
| Containers named "otel/opentelemetry-collector-contrib", "grafana/otel-lgtm"
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.tracing.autoconfigure.otlp.OtlpTracingConnectionDetails[]
|
| javadoc:org.springframework.boot.micrometer.tracing.autoconfigure.otlp.OtlpTracingConnectionDetails[]
|
||||||
| Containers named "otel/opentelemetry-collector-contrib", "grafana/otel-lgtm"
|
| Containers named "otel/opentelemetry-collector-contrib", "grafana/otel-lgtm"
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.autoconfigure.pulsar.PulsarConnectionDetails[]
|
| javadoc:org.springframework.boot.autoconfigure.pulsar.PulsarConnectionDetails[]
|
||||||
|
@ -131,7 +131,7 @@ The following service connections are currently supported:
|
||||||
| javadoc:org.springframework.boot.data.redis.autoconfigure.RedisConnectionDetails[]
|
| javadoc:org.springframework.boot.data.redis.autoconfigure.RedisConnectionDetails[]
|
||||||
| Containers named "redis", "bitnami/redis", "redis/redis-stack" or "redis/redis-stack-server"
|
| Containers named "redis", "bitnami/redis", "redis/redis-stack" or "redis/redis-stack-server"
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.tracing.autoconfigure.zipkin.ZipkinConnectionDetails[]
|
| javadoc:org.springframework.boot.micrometer.tracing.autoconfigure.zipkin.ZipkinConnectionDetails[]
|
||||||
| Containers named "openzipkin/zipkin".
|
| Containers named "openzipkin/zipkin".
|
||||||
|===
|
|===
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ Regardless of your classpath, tracing components which are reporting data are no
|
||||||
|
|
||||||
If you need those components as part of an integration test, annotate the test with javadoc:org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability[format=annotation].
|
If you need those components as part of an integration test, annotate the test with javadoc:org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability[format=annotation].
|
||||||
|
|
||||||
If you have created your own reporting components (e.g. a custom javadoc:io.opentelemetry.sdk.trace.export.SpanExporter[] or `brave.handler.SpanHandler`) and you don't want them to be active in tests, you can use the javadoc:org.springframework.boot.tracing.autoconfigure.ConditionalOnEnabledTracing[format=annotation] annotation to disable them.
|
If you have created your own reporting components (e.g. a custom javadoc:io.opentelemetry.sdk.trace.export.SpanExporter[] or `brave.handler.SpanHandler`) and you don't want them to be active in tests, you can use the javadoc:org.springframework.boot.micrometer.tracing.autoconfigure.ConditionalOnEnabledTracing[format=annotation] annotation to disable them.
|
||||||
|
|
||||||
If you annotate xref:testing/spring-boot-applications.adoc#testing.spring-boot-applications.autoconfigured-tests[a sliced test] with javadoc:org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability[format=annotation], it auto-configures a no-op javadoc:io.micrometer.tracing.Tracer[].
|
If you annotate xref:testing/spring-boot-applications.adoc#testing.spring-boot-applications.autoconfigured-tests[a sliced test] with javadoc:org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability[format=annotation], it auto-configures a no-op javadoc:io.micrometer.tracing.Tracer[].
|
||||||
Data exporting in sliced tests is not supported with the javadoc:org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability[format=annotation] annotation.
|
Data exporting in sliced tests is not supported with the javadoc:org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability[format=annotation] annotation.
|
||||||
|
|
|
@ -158,10 +158,10 @@ The following service connection factories are provided in the `spring-boot-test
|
||||||
| javadoc:org.springframework.boot.opentelemetry.actuate.autoconfigure.logging.OpenTelemetryLoggingConnectionDetails[]
|
| javadoc:org.springframework.boot.opentelemetry.actuate.autoconfigure.logging.OpenTelemetryLoggingConnectionDetails[]
|
||||||
| Containers named "otel/opentelemetry-collector-contrib" or of type javadoc:org.testcontainers.grafana.LgtmStackContainer[]
|
| Containers named "otel/opentelemetry-collector-contrib" or of type javadoc:org.testcontainers.grafana.LgtmStackContainer[]
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails[]
|
| javadoc:org.springframework.boot.micrometer.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails[]
|
||||||
| Containers named "otel/opentelemetry-collector-contrib" or of type javadoc:org.testcontainers.grafana.LgtmStackContainer[]
|
| Containers named "otel/opentelemetry-collector-contrib" or of type javadoc:org.testcontainers.grafana.LgtmStackContainer[]
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.tracing.autoconfigure.otlp.OtlpTracingConnectionDetails[]
|
| javadoc:org.springframework.boot.micrometer.tracing.autoconfigure.otlp.OtlpTracingConnectionDetails[]
|
||||||
| Containers named "otel/opentelemetry-collector-contrib" or of type javadoc:org.testcontainers.grafana.LgtmStackContainer[]
|
| Containers named "otel/opentelemetry-collector-contrib" or of type javadoc:org.testcontainers.grafana.LgtmStackContainer[]
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.autoconfigure.pulsar.PulsarConnectionDetails[]
|
| javadoc:org.springframework.boot.autoconfigure.pulsar.PulsarConnectionDetails[]
|
||||||
|
@ -179,7 +179,7 @@ javadoc:org.testcontainers.oracle.OracleContainer[OracleContainer (free)], javad
|
||||||
| javadoc:org.springframework.boot.data.redis.autoconfigure.RedisConnectionDetails[]
|
| javadoc:org.springframework.boot.data.redis.autoconfigure.RedisConnectionDetails[]
|
||||||
| Containers of type javadoc:com.redis.testcontainers.RedisContainer[] or javadoc:com.redis.testcontainers.RedisStackContainer[], or containers named "redis", "redis/redis-stack" or "redis/redis-stack-server"
|
| Containers of type javadoc:com.redis.testcontainers.RedisContainer[] or javadoc:com.redis.testcontainers.RedisStackContainer[], or containers named "redis", "redis/redis-stack" or "redis/redis-stack-server"
|
||||||
|
|
||||||
| javadoc:org.springframework.boot.tracing.autoconfigure.zipkin.ZipkinConnectionDetails[]
|
| javadoc:org.springframework.boot.micrometer.tracing.autoconfigure.zipkin.ZipkinConnectionDetails[]
|
||||||
| Containers named "openzipkin/zipkin"
|
| Containers named "openzipkin/zipkin"
|
||||||
|===
|
|===
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ package org.springframework.boot.docs.actuator.metrics.gettingstarted.commontags
|
||||||
|
|
||||||
import io.micrometer.core.instrument.MeterRegistry;
|
import io.micrometer.core.instrument.MeterRegistry;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.MeterRegistryCustomizer;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MeterRegistryCustomizer;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import io.micrometer.core.instrument.Meter;
|
||||||
import io.micrometer.core.instrument.config.NamingConvention;
|
import io.micrometer.core.instrument.config.NamingConvention;
|
||||||
import io.micrometer.graphite.GraphiteMeterRegistry;
|
import io.micrometer.graphite.GraphiteMeterRegistry;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.MeterRegistryCustomizer;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MeterRegistryCustomizer;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
package org.springframework.boot.docs.actuator.metrics.gettingstarted.commontags
|
package org.springframework.boot.docs.actuator.metrics.gettingstarted.commontags
|
||||||
|
|
||||||
import io.micrometer.core.instrument.MeterRegistry
|
import io.micrometer.core.instrument.MeterRegistry
|
||||||
import org.springframework.boot.metrics.autoconfigure.MeterRegistryCustomizer
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MeterRegistryCustomizer
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.context.annotation.Configuration
|
import org.springframework.context.annotation.Configuration
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ package org.springframework.boot.docs.actuator.metrics.gettingstarted.specificty
|
||||||
import io.micrometer.core.instrument.Meter
|
import io.micrometer.core.instrument.Meter
|
||||||
import io.micrometer.core.instrument.config.NamingConvention
|
import io.micrometer.core.instrument.config.NamingConvention
|
||||||
import io.micrometer.graphite.GraphiteMeterRegistry
|
import io.micrometer.graphite.GraphiteMeterRegistry
|
||||||
import org.springframework.boot.metrics.autoconfigure.MeterRegistryCustomizer
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MeterRegistryCustomizer
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
import org.springframework.context.annotation.Configuration
|
import org.springframework.context.annotation.Configuration
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.springframework.boot.health.autoconfigure.contributor.HealthContribut
|
||||||
import org.springframework.boot.health.autoconfigure.registry.HealthContributorRegistryAutoConfiguration;
|
import org.springframework.boot.health.autoconfigure.registry.HealthContributorRegistryAutoConfiguration;
|
||||||
import org.springframework.boot.health.contributor.Health;
|
import org.springframework.boot.health.contributor.Health;
|
||||||
import org.springframework.boot.health.contributor.HealthIndicator;
|
import org.springframework.boot.health.contributor.HealthIndicator;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
|
@ -29,7 +29,7 @@ dependencies {
|
||||||
testImplementation(project(":module:spring-boot-http-converter"))
|
testImplementation(project(":module:spring-boot-http-converter"))
|
||||||
testImplementation(project(":module:spring-boot-jackson"))
|
testImplementation(project(":module:spring-boot-jackson"))
|
||||||
testImplementation(project(":module:spring-boot-jersey"))
|
testImplementation(project(":module:spring-boot-jersey"))
|
||||||
testImplementation(project(":module:spring-boot-metrics"))
|
testImplementation(project(":module:spring-boot-micrometer-metrics"))
|
||||||
testImplementation(project(":module:spring-boot-reactor-netty"))
|
testImplementation(project(":module:spring-boot-reactor-netty"))
|
||||||
testImplementation(project(":core:spring-boot-test"))
|
testImplementation(project(":core:spring-boot-test"))
|
||||||
testImplementation(project(":module:spring-boot-tomcat"))
|
testImplementation(project(":module:spring-boot-tomcat"))
|
||||||
|
|
|
@ -28,7 +28,7 @@ import io.micrometer.core.instrument.simple.SimpleConfig;
|
||||||
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
|
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
|
||||||
|
|
||||||
import org.springframework.boot.actuate.endpoint.web.test.WebEndpointTest;
|
import org.springframework.boot.actuate.endpoint.web.test.WebEndpointTest;
|
||||||
import org.springframework.boot.metrics.actuate.endpoint.MetricsEndpoint;
|
import org.springframework.boot.micrometer.metrics.actuate.endpoint.MetricsEndpoint;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
|
|
|
@ -38,7 +38,7 @@ dependencies {
|
||||||
optional(project(":core:spring-boot-docker-compose"))
|
optional(project(":core:spring-boot-docker-compose"))
|
||||||
optional(project(":core:spring-boot-testcontainers"))
|
optional(project(":core:spring-boot-testcontainers"))
|
||||||
optional(project(":module:spring-boot-health"))
|
optional(project(":module:spring-boot-health"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional("io.micrometer:micrometer-core")
|
optional("io.micrometer:micrometer-core")
|
||||||
optional("org.springframework.amqp:spring-rabbit-stream")
|
optional("org.springframework.amqp:spring-rabbit-stream")
|
||||||
optional("org.testcontainers:rabbitmq")
|
optional("org.testcontainers:rabbitmq")
|
||||||
|
|
|
@ -35,7 +35,8 @@ import org.springframework.context.annotation.Bean;
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration",
|
@AutoConfiguration(
|
||||||
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration",
|
||||||
after = RabbitAutoConfiguration.class)
|
after = RabbitAutoConfiguration.class)
|
||||||
@ConditionalOnClass({ ConnectionFactory.class, AbstractConnectionFactory.class, MeterRegistry.class })
|
@ConditionalOnClass({ ConnectionFactory.class, AbstractConnectionFactory.class, MeterRegistry.class })
|
||||||
@ConditionalOnBean({ org.springframework.amqp.rabbit.connection.ConnectionFactory.class, MeterRegistry.class })
|
@ConditionalOnBean({ org.springframework.amqp.rabbit.connection.ConnectionFactory.class, MeterRegistry.class })
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
||||||
import org.springframework.boot.amqp.autoconfigure.RabbitAutoConfiguration;
|
import org.springframework.boot.amqp.autoconfigure.RabbitAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
|
||||||
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
|
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
|
||||||
import org.springframework.boot.amqp.autoconfigure.RabbitAutoConfiguration;
|
import org.springframework.boot.amqp.autoconfigure.RabbitAutoConfiguration;
|
||||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
|
@ -166,7 +166,13 @@ dependencies {
|
||||||
api(project(":module:spring-boot-mail")) {
|
api(project(":module:spring-boot-mail")) {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
api(project(":module:spring-boot-metrics")) {
|
api(project(":module:spring-boot-micrometer-metrics")) {
|
||||||
|
transitive = false
|
||||||
|
}
|
||||||
|
api(project(":module:spring-boot-micrometer-observation")) {
|
||||||
|
transitive = false
|
||||||
|
}
|
||||||
|
api(project(":module:spring-boot-micrometer-tracing")) {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
api(project(":module:spring-boot-mongodb")) {
|
api(project(":module:spring-boot-mongodb")) {
|
||||||
|
@ -181,9 +187,6 @@ dependencies {
|
||||||
api(project(":module:spring-boot-netty")) {
|
api(project(":module:spring-boot-netty")) {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
api(project(":module:spring-boot-observation")) {
|
|
||||||
transitive = false
|
|
||||||
}
|
|
||||||
api(project(":module:spring-boot-opentelemetry")) {
|
api(project(":module:spring-boot-opentelemetry")) {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
|
@ -253,9 +256,6 @@ dependencies {
|
||||||
api(project(":module:spring-boot-tomcat")) {
|
api(project(":module:spring-boot-tomcat")) {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
api(project(":module:spring-boot-tracing")) {
|
|
||||||
transitive = false
|
|
||||||
}
|
|
||||||
api(project(":module:spring-boot-tx")) {
|
api(project(":module:spring-boot-tx")) {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ dependencies {
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-hibernate"))
|
optional(project(":module:spring-boot-hibernate"))
|
||||||
optional(project(":module:spring-boot-observation"))
|
optional(project(":module:spring-boot-micrometer-observation"))
|
||||||
|
|
||||||
testImplementation(project(":core:spring-boot-test"))
|
testImplementation(project(":core:spring-boot-test"))
|
||||||
testImplementation(project(":module:spring-boot-flyway"))
|
testImplementation(project(":module:spring-boot-flyway"))
|
||||||
|
|
|
@ -33,7 +33,8 @@ import org.springframework.context.annotation.Bean;
|
||||||
* @author Mark Bonnekessel
|
* @author Mark Bonnekessel
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(afterName = "org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration")
|
@AutoConfiguration(
|
||||||
|
afterName = "org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration")
|
||||||
@ConditionalOnBean(ObservationRegistry.class)
|
@ConditionalOnBean(ObservationRegistry.class)
|
||||||
@ConditionalOnClass({ ObservationRegistry.class, BatchObservabilityBeanPostProcessor.class })
|
@ConditionalOnClass({ ObservationRegistry.class, BatchObservabilityBeanPostProcessor.class })
|
||||||
public final class BatchObservationAutoConfiguration {
|
public final class BatchObservationAutoConfiguration {
|
||||||
|
|
|
@ -35,7 +35,7 @@ dependencies {
|
||||||
optional(project(":module:spring-boot-data-redis"))
|
optional(project(":module:spring-boot-data-redis"))
|
||||||
optional(project(":module:spring-boot-hazelcast"))
|
optional(project(":module:spring-boot-hazelcast"))
|
||||||
optional(project(":module:spring-boot-hibernate"))
|
optional(project(":module:spring-boot-hibernate"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional("com.hazelcast:hazelcast-spring")
|
optional("com.hazelcast:hazelcast-spring")
|
||||||
optional("io.micrometer:micrometer-core")
|
optional("io.micrometer:micrometer-core")
|
||||||
optional("javax.cache:cache-api")
|
optional("javax.cache:cache-api")
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.springframework.context.annotation.Import;
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(after = { CacheAutoConfiguration.class },
|
@AutoConfiguration(after = { CacheAutoConfiguration.class },
|
||||||
afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
||||||
@ConditionalOnBean(CacheManager.class)
|
@ConditionalOnBean(CacheManager.class)
|
||||||
@ConditionalOnClass(MeterRegistry.class)
|
@ConditionalOnClass(MeterRegistry.class)
|
||||||
@Import({ CacheMeterBinderProvidersConfiguration.class, CacheMetricsRegistrarConfiguration.class })
|
@Import({ CacheMeterBinderProvidersConfiguration.class, CacheMetricsRegistrarConfiguration.class })
|
||||||
|
|
|
@ -29,7 +29,7 @@ dependencies {
|
||||||
api("org.springframework.data:spring-data-commons")
|
api("org.springframework.data:spring-data-commons")
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional(project(":module:spring-boot-webmvc"))
|
optional(project(":module:spring-boot-webmvc"))
|
||||||
|
|
||||||
testImplementation(project(":core:spring-boot-test"))
|
testImplementation(project(":core:spring-boot-test"))
|
||||||
|
|
|
@ -38,10 +38,10 @@ import org.springframework.util.function.SingletonSupplier;
|
||||||
* @author Phillip Webb
|
* @author Phillip Webb
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(
|
@AutoConfiguration(afterName = {
|
||||||
afterName = { "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration",
|
"org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration",
|
||||||
"org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration",
|
"org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration",
|
||||||
"org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration" })
|
"org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration" })
|
||||||
@ConditionalOnClass(org.springframework.data.repository.Repository.class)
|
@ConditionalOnClass(org.springframework.data.repository.Repository.class)
|
||||||
@ConditionalOnBean(MeterRegistry.class)
|
@ConditionalOnBean(MeterRegistry.class)
|
||||||
@EnableConfigurationProperties(DataMetricsProperties.class)
|
@EnableConfigurationProperties(DataMetricsProperties.class)
|
||||||
|
|
|
@ -36,7 +36,7 @@ import org.springframework.boot.data.metrics.AutoTimer;
|
||||||
import org.springframework.boot.data.metrics.DefaultRepositoryTagsProvider;
|
import org.springframework.boot.data.metrics.DefaultRepositoryTagsProvider;
|
||||||
import org.springframework.boot.data.metrics.MetricsRepositoryMethodInvocationListener;
|
import org.springframework.boot.data.metrics.MetricsRepositoryMethodInvocationListener;
|
||||||
import org.springframework.boot.data.metrics.RepositoryTagsProvider;
|
import org.springframework.boot.data.metrics.RepositoryTagsProvider;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
|
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
|
@ -40,7 +40,7 @@ dependencies {
|
||||||
optional(project(":core:spring-boot-docker-compose"))
|
optional(project(":core:spring-boot-docker-compose"))
|
||||||
optional(project(":core:spring-boot-testcontainers"))
|
optional(project(":core:spring-boot-testcontainers"))
|
||||||
optional(project(":module:spring-boot-health"))
|
optional(project(":module:spring-boot-health"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional("com.redis:testcontainers-redis")
|
optional("com.redis:testcontainers-redis")
|
||||||
optional("redis.clients:jedis")
|
optional("redis.clients:jedis")
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.springframework.context.annotation.Bean;
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(before = RedisAutoConfiguration.class,
|
@AutoConfiguration(before = RedisAutoConfiguration.class,
|
||||||
afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
||||||
@ConditionalOnClass({ RedisClient.class, MicrometerCommandLatencyRecorder.class, MeterRegistry.class })
|
@ConditionalOnClass({ RedisClient.class, MicrometerCommandLatencyRecorder.class, MeterRegistry.class })
|
||||||
@ConditionalOnBean(MeterRegistry.class)
|
@ConditionalOnBean(MeterRegistry.class)
|
||||||
public final class LettuceMetricsAutoConfiguration {
|
public final class LettuceMetricsAutoConfiguration {
|
||||||
|
|
|
@ -32,7 +32,7 @@ dependencies {
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-http-converter"))
|
optional(project(":module:spring-boot-http-converter"))
|
||||||
optional(project(":module:spring-boot-observation"))
|
optional(project(":module:spring-boot-micrometer-observation"))
|
||||||
optional(project(":module:spring-boot-rsocket"))
|
optional(project(":module:spring-boot-rsocket"))
|
||||||
optional(project(":module:spring-boot-security"))
|
optional(project(":module:spring-boot-security"))
|
||||||
optional(project(":module:spring-boot-webflux"))
|
optional(project(":module:spring-boot-webflux"))
|
||||||
|
|
|
@ -40,7 +40,8 @@ import org.springframework.graphql.observation.GraphQlObservationInstrumentation
|
||||||
* @author Brian Clozel
|
* @author Brian Clozel
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(afterName = "org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration")
|
@AutoConfiguration(
|
||||||
|
afterName = "org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration")
|
||||||
@ConditionalOnBean(ObservationRegistry.class)
|
@ConditionalOnBean(ObservationRegistry.class)
|
||||||
@ConditionalOnClass({ GraphQL.class, GraphQlSource.class, Observation.class })
|
@ConditionalOnClass({ GraphQL.class, GraphQlSource.class, Observation.class })
|
||||||
public final class GraphQlObservationAutoConfiguration {
|
public final class GraphQlObservationAutoConfiguration {
|
||||||
|
|
|
@ -30,7 +30,7 @@ dependencies {
|
||||||
api("org.springframework:spring-orm")
|
api("org.springframework:spring-orm")
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional("org.hibernate.orm:hibernate-micrometer")
|
optional("org.hibernate.orm:hibernate-micrometer")
|
||||||
|
|
||||||
testImplementation(project(":core:spring-boot-test"))
|
testImplementation(project(":core:spring-boot-test"))
|
||||||
|
|
|
@ -44,7 +44,7 @@ import org.springframework.util.StringUtils;
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(after = HibernateJpaAutoConfiguration.class,
|
@AutoConfiguration(after = HibernateJpaAutoConfiguration.class,
|
||||||
afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
||||||
@ConditionalOnClass({ EntityManagerFactory.class, SessionFactory.class, HibernateMetrics.class, MeterRegistry.class })
|
@ConditionalOnClass({ EntityManagerFactory.class, SessionFactory.class, HibernateMetrics.class, MeterRegistry.class })
|
||||||
@ConditionalOnBean({ EntityManagerFactory.class, MeterRegistry.class })
|
@ConditionalOnBean({ EntityManagerFactory.class, MeterRegistry.class })
|
||||||
public final class HibernateMetricsAutoConfiguration implements SmartInitializingSingleton {
|
public final class HibernateMetricsAutoConfiguration implements SmartInitializingSingleton {
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
|
||||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
|
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
|
||||||
import org.springframework.boot.jpa.EntityManagerFactoryBuilder;
|
import org.springframework.boot.jpa.EntityManagerFactoryBuilder;
|
||||||
import org.springframework.boot.jpa.autoconfigure.EntityManagerFactoryBuilderCustomizer;
|
import org.springframework.boot.jpa.autoconfigure.EntityManagerFactoryBuilderCustomizer;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.FilteredClassLoader;
|
import org.springframework.boot.test.context.FilteredClassLoader;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
import org.springframework.boot.testsupport.classpath.resources.WithResource;
|
import org.springframework.boot.testsupport.classpath.resources.WithResource;
|
||||||
|
|
|
@ -31,7 +31,7 @@ dependencies {
|
||||||
implementation(project(":module:spring-boot-http-converter"))
|
implementation(project(":module:spring-boot-http-converter"))
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional(project(":module:spring-boot-reactor-netty"))
|
optional(project(":module:spring-boot-reactor-netty"))
|
||||||
optional("org.apache.httpcomponents.client5:httpclient5")
|
optional("org.apache.httpcomponents.client5:httpclient5")
|
||||||
optional("org.apache.httpcomponents.core5:httpcore5-reactive")
|
optional("org.apache.httpcomponents.core5:httpcore5-reactive")
|
||||||
|
|
|
@ -24,10 +24,10 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.OnlyOnceLoggingDenyMeterFilter;
|
import org.springframework.boot.micrometer.metrics.OnlyOnceLoggingDenyMeterFilter;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsProperties;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsProperties.Web.Client;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsProperties.Web.Client;
|
||||||
import org.springframework.boot.observation.autoconfigure.ObservationProperties;
|
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationProperties;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
|
|
||||||
|
@ -42,7 +42,8 @@ import org.springframework.core.annotation.Order;
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
@AutoConfiguration(
|
||||||
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
||||||
@ConditionalOnClass({ ObservationProperties.class, MeterRegistry.class, MetricsProperties.class })
|
@ConditionalOnClass({ ObservationProperties.class, MeterRegistry.class, MetricsProperties.class })
|
||||||
@ConditionalOnBean(MeterRegistry.class)
|
@ConditionalOnBean(MeterRegistry.class)
|
||||||
@EnableConfigurationProperties({ MetricsProperties.class, ObservationProperties.class })
|
@EnableConfigurationProperties({ MetricsProperties.class, ObservationProperties.class })
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
|
|
||||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
import org.springframework.boot.test.system.CapturedOutput;
|
import org.springframework.boot.test.system.CapturedOutput;
|
||||||
import org.springframework.boot.test.system.OutputCaptureExtension;
|
import org.springframework.boot.test.system.OutputCaptureExtension;
|
||||||
|
|
|
@ -31,7 +31,7 @@ dependencies {
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-actuator-autoconfigure"))
|
optional(project(":module:spring-boot-actuator-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-jdbc"))
|
optional(project(":module:spring-boot-jdbc"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional(project(":module:spring-boot-rsocket"))
|
optional(project(":module:spring-boot-rsocket"))
|
||||||
optional("org.springframework.integration:spring-integration-jdbc")
|
optional("org.springframework.integration:spring-integration-jdbc")
|
||||||
optional("org.springframework.integration:spring-integration-jmx")
|
optional("org.springframework.integration:spring-integration-jmx")
|
||||||
|
|
|
@ -32,7 +32,7 @@ import org.springframework.boot.integration.autoconfigure.IntegrationAutoConfigu
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(before = IntegrationAutoConfiguration.class,
|
@AutoConfiguration(before = IntegrationAutoConfiguration.class,
|
||||||
afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
||||||
public final class IntegrationMetricsAutoConfiguration {
|
public final class IntegrationMetricsAutoConfiguration {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||||
import org.springframework.boot.integration.autoconfigure.IntegrationAutoConfiguration;
|
import org.springframework.boot.integration.autoconfigure.IntegrationAutoConfiguration;
|
||||||
import org.springframework.boot.integration.autoconfigure.endpoint.IntegrationGraphEndpointAutoConfiguration;
|
import org.springframework.boot.integration.autoconfigure.endpoint.IntegrationGraphEndpointAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
|
@ -38,7 +38,7 @@ dependencies {
|
||||||
optional(project(":core:spring-boot-docker-compose"))
|
optional(project(":core:spring-boot-docker-compose"))
|
||||||
optional(project(":core:spring-boot-testcontainers"))
|
optional(project(":core:spring-boot-testcontainers"))
|
||||||
optional(project(":module:spring-boot-health"))
|
optional(project(":module:spring-boot-health"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional("com.h2database:h2")
|
optional("com.h2database:h2")
|
||||||
optional("com.mchange:c3p0")
|
optional("com.mchange:c3p0")
|
||||||
optional("com.oracle.database.jdbc:ojdbc11")
|
optional("com.oracle.database.jdbc:ojdbc11")
|
||||||
|
|
|
@ -56,7 +56,7 @@ import org.springframework.util.StringUtils;
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(after = DataSourceAutoConfiguration.class,
|
@AutoConfiguration(after = DataSourceAutoConfiguration.class,
|
||||||
afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
||||||
@ConditionalOnClass({ DataSource.class, MeterRegistry.class })
|
@ConditionalOnClass({ DataSource.class, MeterRegistry.class })
|
||||||
@ConditionalOnBean({ DataSource.class, MeterRegistry.class })
|
@ConditionalOnBean({ DataSource.class, MeterRegistry.class })
|
||||||
public final class DataSourcePoolMetricsAutoConfiguration {
|
public final class DataSourcePoolMetricsAutoConfiguration {
|
||||||
|
|
|
@ -36,7 +36,7 @@ import org.springframework.boot.jdbc.DataSourceBuilder;
|
||||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
|
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
|
||||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
|
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
|
||||||
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadataProvider;
|
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadataProvider;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
|
@ -42,8 +42,8 @@ dependencies {
|
||||||
optional(project(":module:spring-boot-actuator-autoconfigure"))
|
optional(project(":module:spring-boot-actuator-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-health"))
|
optional(project(":module:spring-boot-health"))
|
||||||
optional(project(":module:spring-boot-jackson"))
|
optional(project(":module:spring-boot-jackson"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional(project(":module:spring-boot-observation"))
|
optional(project(":module:spring-boot-micrometer-observation"))
|
||||||
optional("io.projectreactor:reactor-core")
|
optional("io.projectreactor:reactor-core")
|
||||||
optional("org.glassfish.jersey.ext:jersey-micrometer")
|
optional("org.glassfish.jersey.ext:jersey-micrometer")
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,9 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplicat
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.jersey.autoconfigure.ResourceConfigCustomizer;
|
import org.springframework.boot.jersey.autoconfigure.ResourceConfigCustomizer;
|
||||||
import org.springframework.boot.metrics.OnlyOnceLoggingDenyMeterFilter;
|
import org.springframework.boot.micrometer.metrics.OnlyOnceLoggingDenyMeterFilter;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsProperties;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsProperties;
|
||||||
import org.springframework.boot.observation.autoconfigure.ObservationProperties;
|
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationProperties;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
|
|
||||||
|
@ -46,7 +46,8 @@ import org.springframework.core.annotation.Order;
|
||||||
* @author Moritz Halbritter
|
* @author Moritz Halbritter
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(afterName = "org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration")
|
@AutoConfiguration(
|
||||||
|
afterName = "org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration")
|
||||||
@ConditionalOnWebApplication(type = Type.SERVLET)
|
@ConditionalOnWebApplication(type = Type.SERVLET)
|
||||||
@ConditionalOnClass({ ResourceConfig.class, ObservationApplicationEventListener.class })
|
@ConditionalOnClass({ ResourceConfig.class, ObservationApplicationEventListener.class })
|
||||||
@ConditionalOnBean({ ResourceConfig.class, ObservationRegistry.class })
|
@ConditionalOnBean({ ResourceConfig.class, ObservationRegistry.class })
|
||||||
|
|
|
@ -33,9 +33,9 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||||
import org.springframework.boot.jersey.autoconfigure.JerseyAutoConfiguration;
|
import org.springframework.boot.jersey.autoconfigure.JerseyAutoConfiguration;
|
||||||
import org.springframework.boot.jersey.autoconfigure.ResourceConfigCustomizer;
|
import org.springframework.boot.jersey.autoconfigure.ResourceConfigCustomizer;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
||||||
import org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration;
|
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.FilteredClassLoader;
|
import org.springframework.boot.test.context.FilteredClassLoader;
|
||||||
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
|
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
|
|
|
@ -31,7 +31,7 @@ dependencies {
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-actuator-autoconfigure"))
|
optional(project(":module:spring-boot-actuator-autoconfigure"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional("org.apache.tomcat.embed:tomcat-embed-jasper")
|
optional("org.apache.tomcat.embed:tomcat-embed-jasper")
|
||||||
optional("org.eclipse.jetty:jetty-alpn-conscrypt-server")
|
optional("org.eclipse.jetty:jetty-alpn-conscrypt-server")
|
||||||
optional("org.eclipse.jetty.ee11.websocket:jetty-ee11-websocket-jakarta-server")
|
optional("org.eclipse.jetty.ee11.websocket:jetty-ee11-websocket-jakarta-server")
|
||||||
|
|
|
@ -41,7 +41,8 @@ import org.springframework.context.annotation.Bean;
|
||||||
* @author Chris Bono
|
* @author Chris Bono
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(afterName = "org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
@AutoConfiguration(
|
||||||
|
afterName = "org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration")
|
||||||
@ConditionalOnWebApplication
|
@ConditionalOnWebApplication
|
||||||
@ConditionalOnClass({ JettyServerThreadPoolMetrics.class, Server.class, MeterRegistry.class })
|
@ConditionalOnClass({ JettyServerThreadPoolMetrics.class, Server.class, MeterRegistry.class })
|
||||||
@ConditionalOnBean(MeterRegistry.class)
|
@ConditionalOnBean(MeterRegistry.class)
|
||||||
|
|
|
@ -31,7 +31,7 @@ dependencies {
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
||||||
optional(project(":core:spring-boot-testcontainers"))
|
optional(project(":core:spring-boot-testcontainers"))
|
||||||
optional(project(":module:spring-boot-metrics"))
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
||||||
optional("org.apache.kafka:kafka-streams")
|
optional("org.apache.kafka:kafka-streams")
|
||||||
optional("org.testcontainers:kafka")
|
optional("org.testcontainers:kafka")
|
||||||
optional("org.testcontainers:redpanda")
|
optional("org.testcontainers:redpanda")
|
||||||
|
|
|
@ -46,8 +46,8 @@ import org.springframework.kafka.streams.KafkaStreamsMicrometerListener;
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration(before = KafkaAutoConfiguration.class,
|
@AutoConfiguration(before = KafkaAutoConfiguration.class,
|
||||||
afterName = { "org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration",
|
afterName = { "org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration",
|
||||||
"org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration" })
|
"org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration" })
|
||||||
@ConditionalOnClass({ KafkaClientMetrics.class, ProducerFactory.class, MeterRegistry.class })
|
@ConditionalOnClass({ KafkaClientMetrics.class, ProducerFactory.class, MeterRegistry.class })
|
||||||
@ConditionalOnBean(MeterRegistry.class)
|
@ConditionalOnBean(MeterRegistry.class)
|
||||||
public final class KafkaMetricsAutoConfiguration {
|
public final class KafkaMetricsAutoConfiguration {
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
# Connection Details Factories
|
|
||||||
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
|
|
||||||
org.springframework.boot.metrics.docker.compose.otlp.OpenTelemetryMetricsDockerComposeConnectionDetailsFactory,\
|
|
||||||
org.springframework.boot.metrics.testcontainers.otlp.GrafanaOpenTelemetryMetricsContainerConnectionDetailsFactory,\
|
|
||||||
org.springframework.boot.metrics.testcontainers.otlp.OpenTelemetryMetricsContainerConnectionDetailsFactory
|
|
||||||
|
|
||||||
# Failure Analyzers
|
|
||||||
org.springframework.boot.diagnostics.FailureAnalyzer=\
|
|
||||||
org.springframework.boot.metrics.ValidationFailureAnalyzer
|
|
|
@ -1,2 +0,0 @@
|
||||||
org.springframework.aot.hint.RuntimeHintsRegistrar=\
|
|
||||||
org.springframework.boot.metrics.autoconfigure.ServiceLevelObjectiveBoundary$ServiceLevelObjectiveBoundaryHints
|
|
|
@ -1,27 +0,0 @@
|
||||||
org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.MetricsAspectsAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.MetricsEndpointAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.appoptics.AppOpticsMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.atlas.AtlasMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.datadog.DatadogMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.dynatrace.DynatraceMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.elastic.ElasticMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.ganglia.GangliaMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.graphite.GraphiteMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.humio.HumioMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.influx.InfluxMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.jmx.JmxMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.kairos.KairosMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.newrelic.NewRelicMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.prometheus.PrometheusMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.stackdriver.StackdriverMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.export.statsd.StatsdMetricsExportAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.jvm.JvmMetricsAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.logging.log4j2.Log4J2MetricsAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.logging.logback.LogbackMetricsAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.startup.StartupTimeMetricsListenerAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.system.SystemMetricsAutoConfiguration
|
|
||||||
org.springframework.boot.metrics.autoconfigure.task.TaskExecutorMetricsAutoConfiguration
|
|
|
@ -28,7 +28,7 @@ description = "Spring Boot Metrics"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":core:spring-boot"))
|
api(project(":core:spring-boot"))
|
||||||
api(project(":module:spring-boot-observation"))
|
api(project(":module:spring-boot-micrometer-observation"))
|
||||||
api("io.micrometer:micrometer-core")
|
api("io.micrometer:micrometer-core")
|
||||||
|
|
||||||
optional(project(":core:spring-boot-autoconfigure"))
|
optional(project(":core:spring-boot-autoconfigure"))
|
|
@ -14,10 +14,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.docker.compose.otlp;
|
package org.springframework.boot.micrometer.metrics.docker.compose.otlp;
|
||||||
|
|
||||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
|
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails;
|
||||||
import org.springframework.boot.testsupport.container.TestImage;
|
import org.springframework.boot.testsupport.container.TestImage;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
@ -14,10 +14,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.docker.compose.otlp;
|
package org.springframework.boot.micrometer.metrics.docker.compose.otlp;
|
||||||
|
|
||||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
|
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.otlp.OtlpMetricsConnectionDetails;
|
||||||
import org.springframework.boot.testsupport.container.TestImage;
|
import org.springframework.boot.testsupport.container.TestImage;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.testcontainers.otlp;
|
package org.springframework.boot.micrometer.metrics.testcontainers.otlp;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.otlp.OtlpMetricsExportAutoConfiguration;
|
||||||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
||||||
import org.springframework.boot.testsupport.container.TestImage;
|
import org.springframework.boot.testsupport.container.TestImage;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.testcontainers.otlp;
|
package org.springframework.boot.micrometer.metrics.testcontainers.otlp;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ import org.testcontainers.utility.MountableFile;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.otlp.OtlpMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.otlp.OtlpMetricsExportAutoConfiguration;
|
||||||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
||||||
import org.springframework.boot.testsupport.container.TestImage;
|
import org.springframework.boot.testsupport.container.TestImage;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics;
|
package org.springframework.boot.micrometer.metrics;
|
||||||
|
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics;
|
package org.springframework.boot.micrometer.metrics;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.config.validate.Validated.Invalid;
|
import io.micrometer.core.instrument.config.validate.Validated.Invalid;
|
||||||
import io.micrometer.core.instrument.config.validate.ValidationException;
|
import io.micrometer.core.instrument.config.validate.ValidationException;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.actuate.endpoint;
|
package org.springframework.boot.micrometer.metrics.actuate.endpoint;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
|
@ -18,6 +18,6 @@
|
||||||
* Actuator endpoint for metrics.
|
* Actuator endpoint for metrics.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
package org.springframework.boot.metrics.actuate.endpoint;
|
package org.springframework.boot.micrometer.metrics.actuate.endpoint;
|
||||||
|
|
||||||
import org.jspecify.annotations.NullMarked;
|
import org.jspecify.annotations.NullMarked;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.composite.CompositeMeterRegistry;
|
import io.micrometer.core.instrument.composite.CompositeMeterRegistry;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import io.micrometer.core.instrument.composite.CompositeMeterRegistry;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
|
||||||
import org.springframework.boot.autoconfigure.condition.NoneNestedConditions;
|
import org.springframework.boot.autoconfigure.condition.NoneNestedConditions;
|
||||||
import org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryConfiguration.MultipleNonPrimaryMeterRegistriesCondition;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryConfiguration.MultipleNonPrimaryMeterRegistriesCondition;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Conditional;
|
import org.springframework.context.annotation.Conditional;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Meter;
|
import io.micrometer.core.instrument.Meter;
|
||||||
import io.micrometer.core.instrument.MeterRegistry;
|
import io.micrometer.core.instrument.MeterRegistry;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import io.micrometer.common.annotation.ValueExpressionResolver;
|
import io.micrometer.common.annotation.ValueExpressionResolver;
|
||||||
import io.micrometer.core.aop.CountedAspect;
|
import io.micrometer.core.aop.CountedAspect;
|
||||||
|
@ -32,7 +32,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration;
|
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.observation.autoconfigure.ObservationHandlerGroup;
|
import org.springframework.boot.micrometer.observation.autoconfigure.ObservationHandlerGroup;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.ApplicationListener;
|
import org.springframework.context.ApplicationListener;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import io.micrometer.core.annotation.Timed;
|
import io.micrometer.core.annotation.Timed;
|
||||||
import io.micrometer.core.instrument.MeterRegistry;
|
import io.micrometer.core.instrument.MeterRegistry;
|
||||||
|
@ -25,7 +25,7 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.metrics.actuate.endpoint.MetricsEndpoint;
|
import org.springframework.boot.micrometer.metrics.actuate.endpoint.MetricsEndpoint;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Clock;
|
import io.micrometer.core.instrument.Clock;
|
||||||
import io.micrometer.core.instrument.MeterRegistry;
|
import io.micrometer.core.instrument.MeterRegistry;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -31,7 +31,7 @@ import io.micrometer.core.instrument.config.MeterFilterReply;
|
||||||
import io.micrometer.core.instrument.distribution.DistributionStatisticConfig;
|
import io.micrometer.core.instrument.distribution.DistributionStatisticConfig;
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsProperties.Distribution;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsProperties.Distribution;
|
||||||
import org.springframework.lang.Contract;
|
import org.springframework.lang.Contract;
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure;
|
package org.springframework.boot.micrometer.metrics.autoconfigure;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export;
|
||||||
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.appoptics;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.appoptics;
|
||||||
|
|
||||||
import io.micrometer.appoptics.AppOpticsConfig;
|
import io.micrometer.appoptics.AppOpticsConfig;
|
||||||
import io.micrometer.appoptics.AppOpticsMeterRegistry;
|
import io.micrometer.appoptics.AppOpticsMeterRegistry;
|
||||||
|
@ -27,10 +27,10 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,14 +14,14 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.appoptics;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.appoptics;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link ConfigurationProperties @ConfigurationProperties} for configuring AppOptics
|
* {@link ConfigurationProperties @ConfigurationProperties} for configuring AppOptics
|
|
@ -14,12 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.appoptics;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.appoptics;
|
||||||
|
|
||||||
import io.micrometer.appoptics.AppOpticsConfig;
|
import io.micrometer.appoptics.AppOpticsConfig;
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter to convert {@link AppOpticsProperties} to an {@link AppOpticsConfig}.
|
* Adapter to convert {@link AppOpticsProperties} to an {@link AppOpticsConfig}.
|
|
@ -18,6 +18,6 @@
|
||||||
* Support for exporting actuator metrics to AppOptics.
|
* Support for exporting actuator metrics to AppOptics.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.appoptics;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.appoptics;
|
||||||
|
|
||||||
import org.jspecify.annotations.NullMarked;
|
import org.jspecify.annotations.NullMarked;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.atlas;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.atlas;
|
||||||
|
|
||||||
import com.netflix.spectator.atlas.AtlasConfig;
|
import com.netflix.spectator.atlas.AtlasConfig;
|
||||||
import io.micrometer.atlas.AtlasMeterRegistry;
|
import io.micrometer.atlas.AtlasMeterRegistry;
|
||||||
|
@ -26,10 +26,10 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.atlas;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.atlas;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.atlas;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.atlas;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
|
||||||
import com.netflix.spectator.atlas.AtlasConfig;
|
import com.netflix.spectator.atlas.AtlasConfig;
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.PropertiesConfigAdapter;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.PropertiesConfigAdapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter to convert {@link AtlasProperties} to an {@link AtlasConfig}.
|
* Adapter to convert {@link AtlasProperties} to an {@link AtlasConfig}.
|
|
@ -18,6 +18,6 @@
|
||||||
* Support for exporting actuator metrics to Atlas.
|
* Support for exporting actuator metrics to Atlas.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.atlas;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.atlas;
|
||||||
|
|
||||||
import org.jspecify.annotations.NullMarked;
|
import org.jspecify.annotations.NullMarked;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.datadog;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.datadog;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Clock;
|
import io.micrometer.core.instrument.Clock;
|
||||||
import io.micrometer.core.ipc.http.HttpUrlConnectionSender;
|
import io.micrometer.core.ipc.http.HttpUrlConnectionSender;
|
||||||
|
@ -27,10 +27,10 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,12 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.datadog;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.datadog;
|
||||||
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link ConfigurationProperties @ConfigurationProperties} for configuring Datadog
|
* {@link ConfigurationProperties @ConfigurationProperties} for configuring Datadog
|
|
@ -14,12 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.datadog;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.datadog;
|
||||||
|
|
||||||
import io.micrometer.datadog.DatadogConfig;
|
import io.micrometer.datadog.DatadogConfig;
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter to convert {@link DatadogProperties} to a {@link DatadogConfig}.
|
* Adapter to convert {@link DatadogProperties} to a {@link DatadogConfig}.
|
|
@ -18,6 +18,6 @@
|
||||||
* Support for exporting actuator metrics to Datadog.
|
* Support for exporting actuator metrics to Datadog.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.datadog;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.datadog;
|
||||||
|
|
||||||
import org.jspecify.annotations.NullMarked;
|
import org.jspecify.annotations.NullMarked;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.dynatrace;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.dynatrace;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Clock;
|
import io.micrometer.core.instrument.Clock;
|
||||||
import io.micrometer.core.ipc.http.HttpUrlConnectionSender;
|
import io.micrometer.core.ipc.http.HttpUrlConnectionSender;
|
||||||
|
@ -27,10 +27,10 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,14 +14,14 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.dynatrace;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.dynatrace;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link ConfigurationProperties @ConfigurationProperties} for configuring Dynatrace
|
* {@link ConfigurationProperties @ConfigurationProperties} for configuring Dynatrace
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.dynatrace;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.dynatrace;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ import io.micrometer.dynatrace.DynatraceApiVersion;
|
||||||
import io.micrometer.dynatrace.DynatraceConfig;
|
import io.micrometer.dynatrace.DynatraceConfig;
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.dynatrace.DynatraceProperties.V1;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.dynatrace.DynatraceProperties.V1;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.dynatrace.DynatraceProperties.V2;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.dynatrace.DynatraceProperties.V2;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter to convert {@link DynatraceProperties} to a {@link DynatraceConfig}.
|
* Adapter to convert {@link DynatraceProperties} to a {@link DynatraceConfig}.
|
|
@ -18,6 +18,6 @@
|
||||||
* Support for exporting actuator metrics to Dynatrace.
|
* Support for exporting actuator metrics to Dynatrace.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.dynatrace;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.dynatrace;
|
||||||
|
|
||||||
import org.jspecify.annotations.NullMarked;
|
import org.jspecify.annotations.NullMarked;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.elastic;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.elastic;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Clock;
|
import io.micrometer.core.instrument.Clock;
|
||||||
import io.micrometer.core.ipc.http.HttpUrlConnectionSender;
|
import io.micrometer.core.ipc.http.HttpUrlConnectionSender;
|
||||||
|
@ -28,10 +28,10 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.context.properties.source.MutuallyExclusiveConfigurationPropertiesException;
|
import org.springframework.boot.context.properties.source.MutuallyExclusiveConfigurationPropertiesException;
|
||||||
import org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -14,12 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.elastic;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.elastic;
|
||||||
|
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link ConfigurationProperties @ConfigurationProperties} for configuring Elastic
|
* {@link ConfigurationProperties @ConfigurationProperties} for configuring Elastic
|
|
@ -14,12 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.elastic;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.elastic;
|
||||||
|
|
||||||
import io.micrometer.elastic.ElasticConfig;
|
import io.micrometer.elastic.ElasticConfig;
|
||||||
import org.jspecify.annotations.Nullable;
|
import org.jspecify.annotations.Nullable;
|
||||||
|
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.properties.StepRegistryPropertiesConfigAdapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter to convert {@link ElasticProperties} to an {@link ElasticConfig}.
|
* Adapter to convert {@link ElasticProperties} to an {@link ElasticConfig}.
|
|
@ -18,6 +18,6 @@
|
||||||
* Support for exporting actuator metrics to Elastic.
|
* Support for exporting actuator metrics to Elastic.
|
||||||
*/
|
*/
|
||||||
@NullMarked
|
@NullMarked
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.elastic;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.elastic;
|
||||||
|
|
||||||
import org.jspecify.annotations.NullMarked;
|
import org.jspecify.annotations.NullMarked;
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.boot.metrics.autoconfigure.export.ganglia;
|
package org.springframework.boot.micrometer.metrics.autoconfigure.export.ganglia;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Clock;
|
import io.micrometer.core.instrument.Clock;
|
||||||
import io.micrometer.ganglia.GangliaConfig;
|
import io.micrometer.ganglia.GangliaConfig;
|
||||||
|
@ -26,10 +26,10 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.MetricsAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.MetricsAutoConfiguration;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.ConditionalOnEnabledMetricsExport;
|
||||||
import org.springframework.boot.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
import org.springframework.boot.micrometer.metrics.autoconfigure.export.simple.SimpleMetricsExportAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
/**
|
/**
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue