public interface QueryBusSpanFactory
QueryBus
. You can customize the spans of the bus by creating your own
implementation.Modifier and Type | Method and Description |
---|---|
Span |
createQueryProcessingSpan(QueryMessage<?,?> queryMessage)
Creates a span for processing a query.
|
Span |
createQuerySpan(QueryMessage<?,?> queryMessage,
boolean distributed)
Creates a span for a query.
|
Span |
createResponseProcessingSpan(QueryMessage<?,?> queryMessage)
Creates a span for processing a response.
|
Span |
createScatterGatherHandlerSpan(QueryMessage<?,?> queryMessage,
int handlerIndex)
Creates a span for one of the handlers of a scatter-gather query.
|
Span |
createScatterGatherSpan(QueryMessage<?,?> queryMessage,
boolean distributed)
Creates a span for a scatter-gather query.
|
Span |
createStreamingQuerySpan(QueryMessage<?,?> queryMessage,
boolean distributed)
Creates a span for a streaming query.
|
Span |
createSubscriptionQueryProcessUpdateSpan(SubscriptionQueryUpdateMessage<?> updateMessage,
SubscriptionQueryMessage<?,?,?> queryMessage)
Creates a span for processing a subscription query update that has been received from the server.
|
Span |
createSubscriptionQuerySpan(SubscriptionQueryMessage<?,?,?> queryMessage,
boolean distributed)
Creates a span for a subscription query.
|
<T,R,M extends QueryMessage<T,R>> |
propagateContext(M queryMessage)
Propagates the context of the current span to the given
queryMessage . |
Span createQuerySpan(QueryMessage<?,?> queryMessage, boolean distributed)
queryMessage
- The query message being dispatched.distributed
- Whether the query is from a distributed source.Span createSubscriptionQuerySpan(SubscriptionQueryMessage<?,?,?> queryMessage, boolean distributed)
queryMessage
- The subscription query message being dispatched.distributed
- Whether the subscription query is from a distributed source.Span createSubscriptionQueryProcessUpdateSpan(SubscriptionQueryUpdateMessage<?> updateMessage, SubscriptionQueryMessage<?,?,?> queryMessage)
updateMessage
- The update message being handled.queryMessage
- The subscription query message that the update is for.Span createScatterGatherSpan(QueryMessage<?,?> queryMessage, boolean distributed)
queryMessage
- The query message being handled.distributed
- Whether the query is from a distributed source.Span createScatterGatherHandlerSpan(QueryMessage<?,?> queryMessage, int handlerIndex)
queryMessage
- The query message being handled.handlerIndex
- The index of the handler. Starts at 0.Span createStreamingQuerySpan(QueryMessage<?,?> queryMessage, boolean distributed)
queryMessage
- The query message being dispatched.distributed
- Whether the query is from a distributed source.Span createQueryProcessingSpan(QueryMessage<?,?> queryMessage)
queryMessage
- The query message being handled.Span createResponseProcessingSpan(QueryMessage<?,?> queryMessage)
queryMessage
- The query message the response is for.<T,R,M extends QueryMessage<T,R>> M propagateContext(M queryMessage)
queryMessage
.T
- The type of the payload of the query message.R
- The type of the response of the query message.M
- The type of the query message.queryMessage
- The query message to propagate the context to.Copyright © 2010–2024. All rights reserved.