mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Add starters for Micrometer Metrics
This commit adds spring-boot-starter-micrometer-metrics and spring-boot-starter-micrometer-metrics-test. It also uses the new starters in smoke tests and in other starters, which depended on spring-boot-micrometer-metrics. Closes gh-48161
This commit is contained in:
@@ -2205,6 +2205,8 @@ bom {
|
||||
"spring-boot-starter-logging",
|
||||
"spring-boot-starter-mail",
|
||||
"spring-boot-starter-mail-test",
|
||||
"spring-boot-starter-micrometer-metrics",
|
||||
"spring-boot-starter-micrometer-metrics-test",
|
||||
"spring-boot-starter-mongodb",
|
||||
"spring-boot-starter-mongodb-test",
|
||||
"spring-boot-starter-mustache",
|
||||
|
||||
@@ -303,6 +303,8 @@ include "starter:spring-boot-starter-logback"
|
||||
include "starter:spring-boot-starter-logging"
|
||||
include "starter:spring-boot-starter-mail"
|
||||
include "starter:spring-boot-starter-mail-test"
|
||||
include "starter:spring-boot-starter-micrometer-metrics"
|
||||
include "starter:spring-boot-starter-micrometer-metrics-test"
|
||||
include "starter:spring-boot-starter-mongodb"
|
||||
include "starter:spring-boot-starter-mongodb-test"
|
||||
include "starter:spring-boot-starter-mustache"
|
||||
|
||||
@@ -28,7 +28,7 @@ dependencies {
|
||||
|
||||
runtimeOnly('io.micrometer:micrometer-registry-prometheus')
|
||||
|
||||
testImplementation(project(":module:spring-boot-micrometer-metrics-test"))
|
||||
testImplementation(project(":starter:spring-boot-starter-micrometer-metrics-test"))
|
||||
testImplementation(project(":starter:spring-boot-starter-webmvc-test"))
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,5 @@ description = "Starter for testing Spring Boot's Actuator which provides product
|
||||
dependencies {
|
||||
api(project(":starter:spring-boot-starter-actuator"))
|
||||
api(project(":starter:spring-boot-starter-test"))
|
||||
|
||||
api(project(":module:spring-boot-micrometer-metrics-test"))
|
||||
api(project(":starter:spring-boot-starter-micrometer-metrics-test"))
|
||||
}
|
||||
|
||||
@@ -22,10 +22,10 @@ description = "Starter for using Spring Boot's Actuator which provides productio
|
||||
|
||||
dependencies {
|
||||
api(project(":starter:spring-boot-starter"))
|
||||
api(project(":starter:spring-boot-starter-micrometer-metrics"))
|
||||
|
||||
api(project(":module:spring-boot-actuator-autoconfigure"))
|
||||
api(project(":module:spring-boot-health"))
|
||||
api(project(":module:spring-boot-micrometer-metrics"))
|
||||
|
||||
api("io.micrometer:micrometer-observation")
|
||||
api("io.micrometer:micrometer-jakarta9")
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2012-present the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the License);
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
plugins {
|
||||
id "org.springframework.boot.starter"
|
||||
}
|
||||
|
||||
description = "Starter for testing Micrometer Metrics"
|
||||
|
||||
dependencies {
|
||||
api(project(":starter:spring-boot-starter-micrometer-metrics"))
|
||||
api(project(":starter:spring-boot-starter-test"))
|
||||
|
||||
api(project(":module:spring-boot-micrometer-metrics-test"))
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2012-present the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the License);
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
plugins {
|
||||
id "org.springframework.boot.starter"
|
||||
}
|
||||
|
||||
description = "Starter for using Micrometer Metrics"
|
||||
|
||||
dependencies {
|
||||
api(project(":starter:spring-boot-starter"))
|
||||
|
||||
api(project(":module:spring-boot-micrometer-metrics"))
|
||||
}
|
||||
@@ -23,7 +23,7 @@ description = "Starter for testing OpenTelemetry"
|
||||
dependencies {
|
||||
api(project(":starter:spring-boot-starter-opentelemetry"))
|
||||
api(project(":starter:spring-boot-starter-test"))
|
||||
api(project(":starter:spring-boot-starter-micrometer-metrics-test"))
|
||||
|
||||
api(project(":module:spring-boot-micrometer-metrics-test"))
|
||||
api(project(":module:spring-boot-micrometer-tracing-test"))
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ description = "Starter for using OpenTelemetry"
|
||||
|
||||
dependencies {
|
||||
api(project(":starter:spring-boot-starter"))
|
||||
api(project(":module:spring-boot-micrometer-metrics"))
|
||||
api(project(":starter:spring-boot-starter-micrometer-metrics"))
|
||||
api(project(":module:spring-boot-micrometer-tracing-opentelemetry"))
|
||||
api(project(":module:spring-boot-opentelemetry"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user