You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This artifact contains two primary abstractions, that are available to application code as Spring Beans:
146
160
147
161
* `CompletedEventPublications` -- This interface allows accessing all completed event publications, and provides API to immediately purge all of them from the database or the completed publications older that a given duration (for example, 1 minute).
The dependency added to the project's classpath causes the following things in your application:
18
32
19
33
* Application code can refer to `HourHasPassed`, `DayHasPassed`, `WeekHasPassed`, `MonthHasPassed`, `QuarterHasPassed`, `YearHasPassed` types in Spring event listeners to get notified if a certain amount of time has passed.
Copy file name to clipboardExpand all lines: src/docs/antora/modules/ROOT/pages/production-ready.adoc
+50-3Lines changed: 50 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,11 @@ Spring Modulith provides support to expose architectural information about your
5
5
As a production-ready application is likely to require both, the most convenient way to activate those features is to use the Spring Modulith Insight starter as follows:
6
6
7
7
.Using the Spring Modulith Insight starter
8
-
[source, xml, subs="+attributes"]
8
+
[tabs]
9
+
======
10
+
Maven::
11
+
+
12
+
[source, xml, subs="+attributes", role="primary"]
9
13
----
10
14
<dependency>
11
15
<groupId>org.springframework.modulith</groupId>
@@ -15,6 +19,16 @@ As a production-ready application is likely to require both, the most convenien
This will include the actuator and observability support as well as Spring Boot's actuator startup for general support for actuators.
19
33
Note, that you will still have to add further dependencies to connect your application to your monitoring tools such as https://zipkin.io/[Zipkin], https://docs.wavefront.com/[Wavefront] etc. usually via https://opentelemetry.io/[OpenTelemetry] or https://github.com/openzipkin/brave[Brave].
20
34
Find more information on that in https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#actuator.micrometer-tracing[the corresponding section] of Spring Boot's reference documentation.
@@ -26,7 +40,11 @@ The application module structure can be exposed as Spring Boot actuator.
26
40
To enable the actuator, add the `spring-modulith-actuator` dependency to the project:
27
41
28
42
.Using the Spring Modulith actuator support
29
-
[source, xml, subs="+attributes"]
43
+
[tabs]
44
+
======
45
+
Maven::
46
+
+
47
+
[source, xml, subs="+attributes", role="primary"]
30
48
----
31
49
<dependency>
32
50
<groupId>org.springframework.modulith</groupId>
@@ -44,6 +62,21 @@ To enable the actuator, add the `spring-modulith-actuator` dependency to the pro
NOTE: You will have to configure additional infrastructure dependencies depending on the tooling you want to pipe the observability metadata in.
133
180
For details, please check the corresponding https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#actuator.micrometer-tracing[Spring Boot documentation] on which dependencies to include for your setup.
IMPORTANT: It's worth noting that using the runtime support of Spring Modulith will mean that you include both https://www.archunit.org/[ArchUnit] and the https://jgrapht.org/[JGraphT] (required to topologically sort application modules) library in your application.
22
35
23
36
Adding this JAR will cause Spring Boot auto-configuration to run that registers the following components in your application:
0 commit comments