public class DefaultEventBusSpanFactory extends Object implements EventBusSpanFactory
EventBusSpanFactory.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultEventBusSpanFactory.Builder
Builder class to instantiate a
DefaultEventBusSpanFactory. |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultEventBusSpanFactory(DefaultEventBusSpanFactory.Builder builder)
Creates a new
DefaultEventBusSpanFactory using the provided builder. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultEventBusSpanFactory.Builder |
builder()
Creates a new
DefaultEventBusSpanFactory.Builder to build a DefaultEventBusSpanFactory with. |
Span |
createCommitEventsSpan()
Creates a span for the committing of events.
|
Span |
createPublishEventSpan(EventMessage<?> eventMessage)
Creates a span for the publishing of an event.
|
<T> EventMessage<T> |
propagateContext(EventMessage<T> eventMessage)
Propagates the context of the current span to the given event message.
|
protected DefaultEventBusSpanFactory(DefaultEventBusSpanFactory.Builder builder)
DefaultEventBusSpanFactory using the provided builder.builder - The builder to build the DefaultEventBusSpanFactory from.public Span createPublishEventSpan(EventMessage<?> eventMessage)
EventBusSpanFactoryEventBus. This span does not include the actual commit of the event, this is represented by the EventBusSpanFactory.createCommitEventsSpan() and may occur later.createPublishEventSpan in interface EventBusSpanFactoryeventMessage - The event message to create a span for.public Span createCommitEventsSpan()
EventBusSpanFactorycreateCommitEventsSpan in interface EventBusSpanFactorypublic <T> EventMessage<T> propagateContext(EventMessage<T> eventMessage)
EventBusSpanFactorypropagateContext in interface EventBusSpanFactoryT - The type of the payload of the event message.eventMessage - The event message to propagate the context to.public static DefaultEventBusSpanFactory.Builder builder()
DefaultEventBusSpanFactory.Builder to build a DefaultEventBusSpanFactory with. The spanFactory is a
required field and should be provided.DefaultEventBusSpanFactory.Builder to build a DefaultEventBusSpanFactory with.Copyright © 2010–2025. All rights reserved.