Class ModuleTracingBeanPostProcessor
java.lang.Object
org.springframework.modulith.observability.ModuleTracingSupport
org.springframework.modulith.observability.ModuleTracingBeanPostProcessor
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanPostProcessor,Ordered
public class ModuleTracingBeanPostProcessor
extends ModuleTracingSupport
implements BeanPostProcessor, Ordered
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionModuleTracingBeanPostProcessor(ApplicationModulesRuntime runtime, Supplier<io.micrometer.tracing.Tracer> tracer, ConfigurableListableBeanFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()postProcessAfterInitialization(Object bean, String beanName) Methods inherited from class org.springframework.modulith.observability.ModuleTracingSupport
addAdvisor, addAdvisor, setBeanClassLoaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, ConfigurableListableBeanFactory factory) - Parameters:
runtime- must not be null.tracer- must not be null.
-
-
Method Details
-
getOrder
public int getOrder() -
postProcessAfterInitialization
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-