Class ContextProviderFactory
java.lang.Object
org.springframework.data.mongodb.observability.ContextProviderFactory
Factory to create a 
ContextProvider to propagate the request context across tasks. Requires either
 SynchronousContextProvider or ReactiveContextProvider to be present.- Since:
- 3.0
- Author:
- Mark Paluch
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic com.mongodb.ContextProvidercreate(io.micrometer.observation.ObservationRegistry observationRegistry) Create aContextProvidergivenObservationRegistry.
- 
Constructor Details- 
ContextProviderFactorypublic ContextProviderFactory()
 
- 
- 
Method Details- 
createpublic static com.mongodb.ContextProvider create(io.micrometer.observation.ObservationRegistry observationRegistry) Create aContextProvidergivenObservationRegistry. The factory method attempts to create aContextProviderthat is capable to propagate request contexts across imperative or reactive usage, depending on their class path presence.- Parameters:
- observationRegistry- must not be null.
- Returns:
 
 
-