Interface QueryUpdateEmitterSpanFactory
- All Known Implementing Classes:
DefaultQueryUpdateEmitterSpanFactory
public interface QueryUpdateEmitterSpanFactory
Span factory that creates spans for the
QueryUpdateEmitter. You can customize the spans of the bus by creating your own
implementation.- Since:
- 4.9.0
- Author:
- Mitchell Herrijgers
-
Method Summary
Modifier and TypeMethodDescriptionCreates a span for the actual emit of a query update when the UnitOfWork commits (or immediately if no UnitOfWork is active).Creates a span for the scheduling of emitting a query update.<M extends SubscriptionQueryUpdateMessage>
MpropagateContext(M update) Propagates the context of the current span to the given update message.
-
Method Details
-
createUpdateScheduleEmitSpan
Creates a span for the scheduling of emitting a query update. Query update are scheduled to be emitted in the commit phase of the UnitOfWork, so these traces are separated to see the proper timings.- Parameters:
update- The update to create a span for.- Returns:
- The created span.
-
createUpdateEmitSpan
Creates a span for the actual emit of a query update when the UnitOfWork commits (or immediately if no UnitOfWork is active).- Parameters:
update- The update to create a span for.- Returns:
- The created span.
-
propagateContext
Propagates the context of the current span to the given update message.- Type Parameters:
M- The type of the update message.T- The type of the payload of the update message.- Parameters:
update- The update message to propagate the context to.- Returns:
- The update message with the propagated context.
-