Class DefaultDispatcher
Implements
Constructors
constructor
-
Returns DefaultDispatcher
Methods
add
dispatch
-
Delivers one event to every reporter, in the order they were added.
Parameters
- event: Event
Returns Promise<void>
set Global Metadata
-
Passes one entry of global metadata to every reporter, in order.
Parameters
- key: string
- value: PlainValue
Returns Promise<void>
The dispatcher executors use unless they are given another factory.
It calls its reporters in the order they were added, waiting for each before the next. When a reporter fails, the event stops there and the failure is passed on, except for
journey_aborted, which goes on to every reporter past a failure, then passes on the first. Each entry of global metadata reaches the reporters in the same order, and stops at the first that fails.