Package io.axoniq.framework.springboot
Class ThreadLocalContextPropagationProperties
java.lang.Object
io.axoniq.framework.springboot.ThreadLocalContextPropagationProperties
@ConfigurationProperties(prefix="axon.tracing.thread-local-context-propagation")
public class ThreadLocalContextPropagationProperties
extends Object
Spring Boot configuration properties for the Micrometer tracing thread-local context-propagation bridge.
Binds axon.tracing.thread-local-context-propagation.*, controlling whether the active trace context (and other
bridged thread-bound state) is restored on the framework's worker threads through the UnitOfWork
action-interceptor seam. This governs the in-process thread-local bridge only; cross-service trace-context
propagation (via the Propagator over message metadata) is part of core tracing and is unaffected:
axon:
tracing:
thread-local-context-propagation:
enabled: true
- Since:
- 5.3.0
- Author:
- Mateusz Nowak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the Micrometer thread-local context-propagation bridge is enabled.voidsetEnabled(boolean enabled) Whether to enable the Micrometer thread-local context-propagation bridge.
-
Constructor Details
-
ThreadLocalContextPropagationProperties
public ThreadLocalContextPropagationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether the Micrometer thread-local context-propagation bridge is enabled.- Returns:
truewhen the bridge is enabled
-
setEnabled
public void setEnabled(boolean enabled) Whether to enable the Micrometer thread-local context-propagation bridge.- Parameters:
enabled- whether the bridge is enabled
-