Skip to content

Commit 948a58e

Browse files
authored
Spring autoconf deps (#11784)
1 parent fa72a65 commit 948a58e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

instrumentation/spring/spring-boot-autoconfigure-3/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ otelJava {
1313
dependencies {
1414
val springBootVersion = "3.2.4"
1515
library("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
16-
compileOnly(project(":instrumentation:spring:spring-boot-autoconfigure"))
16+
implementation(project(":instrumentation:spring:spring-boot-autoconfigure"))
1717
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
1818
implementation(project(":instrumentation:spring:spring-web:spring-web-3.1:library"))
1919

instrumentation/spring/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

+6
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@
279279
"description": "Enables the DB statement sanitization.",
280280
"defaultValue": true
281281
},
282+
{
283+
"name": "otel.instrumentation.common.default-enabled",
284+
"type": "java.lang.Boolean",
285+
"description": "Enables all instrumentations. Set to <code>false</code> to disable all instrumentations and then enable specific modules individually, e.g. <code>otel.instrumentation.jdbc.enabled=true</code>.",
286+
"defaultValue": true
287+
},
282288
{
283289
"name": "otel.instrumentation.common.peer-service-mapping",
284290
"type": "java.util.Map<java.lang.String, java.lang.String>",

0 commit comments

Comments
 (0)