Skip to content

Commit 6b64ecc

Browse files
committed
fix(spring): make dapr-spring-boot-observation non-optional in autoconfigure poms
The autoconfigure classes directly reference ObservationDaprClient and ObservationDaprWorkflowClient in their bean factory methods. When the observation module was marked <optional>, it was not propagated through the starters, causing a potential NoClassDefFoundError at runtime for users with a non-noop ObservationRegistry (e.g. actuator + tracing). Removing <optional> restores the original behavior: the Observation decorator classes are always on the classpath wherever the autoconfig is loaded. Signed-off-by: Javier Aliaga <javier@diagrid.io>
1 parent 4bc734f commit 6b64ecc

File tree

2 files changed

+0
-2
lines changed
  • dapr-spring
    • dapr-spring-boot-4-autoconfigure
    • dapr-spring-boot-autoconfigure

2 files changed

+0
-2
lines changed

dapr-spring/dapr-spring-boot-4-autoconfigure/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
<dependency>
9393
<groupId>io.dapr.spring</groupId>
9494
<artifactId>dapr-spring-boot-observation</artifactId>
95-
<optional>true</optional>
9695
</dependency>
9796
<dependency>
9897
<groupId>io.micrometer</groupId>

dapr-spring/dapr-spring-boot-autoconfigure/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
<dependency>
6262
<groupId>io.dapr.spring</groupId>
6363
<artifactId>dapr-spring-boot-observation</artifactId>
64-
<optional>true</optional>
6564
</dependency>
6665
<dependency>
6766
<groupId>io.micrometer</groupId>

0 commit comments

Comments
 (0)