Skip to content

Commit 416ba1e

Browse files
committed
Updates
1 parent 6e7c7f8 commit 416ba1e

File tree

3 files changed

+43
-44
lines changed

3 files changed

+43
-44
lines changed

spring-cli/projects/obaas/pom.xml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,48 @@
3131
<artifactId>spring-boot-starter-web</artifactId>
3232
</dependency>
3333

34+
<!-- This enables Spring Actuator which provides monitoring, metrics, etc. -->
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-actuator</artifactId>
38+
</dependency>
39+
40+
<!-- Core module of Micrometer -->
41+
<dependency>
42+
<groupId>io.micrometer</groupId>
43+
<artifactId>micrometer-core</artifactId>
44+
</dependency>
45+
46+
<!-- Prometheus-->
47+
<dependency>
48+
<groupId>io.micrometer</groupId>
49+
<artifactId>micrometer-registry-prometheus</artifactId>
50+
</dependency>
51+
52+
<!-- Adds the Tracer Implementation -->
53+
<dependency>
54+
<groupId>io.micrometer</groupId>
55+
<artifactId>micrometer-tracing-bridge-otel</artifactId>
56+
</dependency>
57+
58+
<!-- Adds an exporter to store the traces -->
59+
<dependency>
60+
<groupId>io.opentelemetry</groupId>
61+
<artifactId>opentelemetry-exporter-otlp</artifactId>
62+
</dependency>
63+
64+
<!-- Adds the Tracing API -->
65+
<dependency>
66+
<groupId>io.micrometer</groupId>
67+
<artifactId>micrometer-tracing</artifactId>
68+
</dependency>
69+
70+
<!-- Eureka client-->
71+
<dependency>
72+
<groupId>org.springframework.cloud</groupId>
73+
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
74+
</dependency>
75+
3476
<!-- This is for Spring Data JPA. You could use Spring Data JDBC instead. -->
3577
<dependency>
3678
<groupId>org.springframework.boot</groupId>
@@ -65,55 +107,13 @@
65107
<artifactId>liquibase-core</artifactId>
66108
</dependency>
67109

68-
<!-- This enables Spring Actuator which provides monitoring, metrics, etc. -->
69-
<dependency>
70-
<groupId>org.springframework.boot</groupId>
71-
<artifactId>spring-boot-starter-actuator</artifactId>
72-
</dependency>
73-
74110
<!-- This adds metrics for data sources. -->
75111
<dependency>
76112
<groupId>net.ttddyy.observation</groupId>
77113
<artifactId>datasource-micrometer-spring-boot</artifactId>
78114
<version>${datasource-micrometer-spring-boot.version}</version>
79115
</dependency>
80116

81-
<!-- Eureka client-->
82-
<dependency>
83-
<groupId>org.springframework.cloud</groupId>
84-
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
85-
</dependency>
86-
87-
<!-- Core module of Micrometer -->
88-
<dependency>
89-
<groupId>io.micrometer</groupId>
90-
<artifactId>micrometer-core</artifactId>
91-
</dependency>
92-
93-
<!-- Prometheus-->
94-
<dependency>
95-
<groupId>io.micrometer</groupId>
96-
<artifactId>micrometer-registry-prometheus</artifactId>
97-
</dependency>
98-
99-
<!-- Adds the Tracer Implementation -->
100-
<dependency>
101-
<groupId>io.micrometer</groupId>
102-
<artifactId>micrometer-tracing-bridge-otel</artifactId>
103-
</dependency>
104-
105-
<!-- Adds an exporter to store the traces -->
106-
<dependency>
107-
<groupId>io.opentelemetry</groupId>
108-
<artifactId>opentelemetry-exporter-otlp</artifactId>
109-
</dependency>
110-
111-
<!-- Adds the Tracing API -->
112-
<dependency>
113-
<groupId>io.micrometer</groupId>
114-
<artifactId>micrometer-tracing</artifactId>
115-
</dependency>
116-
117117
<!-- Spring test support. -->
118118
<dependency>
119119
<groupId>org.springframework.boot</groupId>

spring-cli/projects/obaas/src/main/resources/application.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ management:
8989
otlp:
9090
tracing:
9191
endpoint: ${otel.exporter.otlp.endpoint}
92-
export:
93-
enabled: true
9492

9593
logging:
9694
level:

spring-cli/projects/obaas/src/test/java/com/example/restservice/greeting/GreetingControllerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.util.concurrent.atomic.AtomicLong;
44

55
import org.junit.jupiter.api.Test;
6+
import org.junit.jupiter.api.BeforeEach;
67
import org.springframework.beans.factory.annotation.Autowired;
78
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
89
import org.springframework.boot.test.context.SpringBootTest;

0 commit comments

Comments
 (0)