Skip to content

Commit b2a524b

Browse files
committed
Polishing.
Added recommendation for Mongos native observability features in Javadoc. Fixed minor typo. Original pull request #5080 See #5078
1 parent fd9db7b commit b2a524b

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/observability/ContextProviderFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
* <p>
4141
* <strong>NOTE:</strong> MongoDB Java Driver 5.7+ comes with observability directly built in which can be configured
4242
* via {@code MongoClientSettings.Builder#observabilitySettings(ObservabilitySettings)}.
43+
* We recommend switching to the driver native observability.
4344
*
4445
* @author Mark Paluch
4546
* @since 3.0

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/observability/MongoHandlerContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* <p>
3939
* <strong>NOTE:</strong> MongoDB Java Driver 5.7+ comes with observability directly built in which can be configured
4040
* via {@code MongoClientSettings.Builder#observabilitySettings(ObservabilitySettings)}.
41+
* We recommend switching to the driver native observability.
4142
*
4243
* @author Marcin Grzejszczak
4344
* @author Greg Turnquist

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/observability/MongoHandlerObservationConvention.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* <p>
2424
* <strong>NOTE:</strong> MongoDB Java Driver 5.7+ comes with observability directly built in which can be configured
2525
* via {@code MongoClientSettings.Builder#observabilitySettings(ObservabilitySettings)}.
26+
* We recommend switching to the driver native observability.
2627
*
2728
* @author Greg Turnquist
2829
* @since 4

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/observability/MongoObservationCommandListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* <p>
4040
* <strong>NOTE:</strong> MongoDB Java Driver 5.7+ comes with observability directly built in which can be configured
4141
* via {@code MongoClientSettings.Builder#observabilitySettings(ObservabilitySettings)}.
42+
* We recommend switching to the driver native observability.
4243
*
4344
* @author OpenZipkin Brave Authors
4445
* @author Marcin Grzejszczak

src/main/antora/modules/ROOT/pages/mongodb/change-streams.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ container.stop();
4444
<5> Do not forget to stop the container once you are sure you no longer need it. Doing so stops all running `Task` instances within the container.
4545
====
4646

47-
`DefaultMessageListenerContainer` implements `SmartLifecycle` and will by default be automatically started when registered as a Bean in the Application Context.
47+
`DefaultMessageListenerContainer` implements `SmartLifecycle` and will by default be automatically started when registered as a bean in the Application Context.
4848

4949
[NOTE]
5050
====

0 commit comments

Comments
 (0)