public interface CommandBusSpanFactory
CommandBus. You can customize the spans of the bus by creating your
own implementation.| Modifier and Type | Method and Description |
|---|---|
Span |
createDispatchCommandSpan(CommandMessage<?> commandMessage,
boolean distributed)
Creates a span for the dispatching of a command.
|
Span |
createHandleCommandSpan(CommandMessage<?> commandMessage,
boolean distributed)
Creates a span for the handling of a command.
|
<T> CommandMessage<T> |
propagateContext(CommandMessage<T> commandMessage)
Propagates the context of the current span to the given command message.
|
Span createDispatchCommandSpan(CommandMessage<?> commandMessage, boolean distributed)
commandMessage - The command message to create a span for.distributed - Whether the command is distributed or not.Span createHandleCommandSpan(CommandMessage<?> commandMessage, boolean distributed)
commandMessage - The command message to create a span for.distributed - Whether the command is distributed or not.<T> CommandMessage<T> propagateContext(CommandMessage<T> commandMessage)
T - The type of the payload of the command message.commandMessage - The command message to propagate the context to.Copyright © 2010–2025. All rights reserved.