Class ModuleTracingBeanPostProcessor
java.lang.Object
org.springframework.modulith.observability.ModuleTracingSupport
org.springframework.modulith.observability.ModuleTracingBeanPostProcessor
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanPostProcessor
public class ModuleTracingBeanPostProcessor
extends ModuleTracingSupport
implements BeanPostProcessor
A
BeanPostProcessor
that decorates beans exposed by application modules with an interceptor that registers
module entry and exit to create tracing spans for those invocations.- Author:
- Oliver Drotbohm
-
Field Summary
-
Constructor Summary
ConstructorDescriptionModuleTracingBeanPostProcessor
(ApplicationModulesRuntime runtime, Supplier<io.micrometer.tracing.Tracer> tracer) -
Method Summary
Methods inherited from class org.springframework.modulith.observability.ModuleTracingSupport
addAdvisor, addAdvisor, setBeanClassLoader
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Field Details
-
MODULE_BAGGAGE_KEY
- See Also:
-
-
Constructor Details
-
ModuleTracingBeanPostProcessor
public ModuleTracingBeanPostProcessor(ApplicationModulesRuntime runtime, Supplier<io.micrometer.tracing.Tracer> tracer) - Parameters:
runtime
- must not be null.tracer
- must not be null.
-
-
Method Details
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-