Abstract
Abstract
systemProvides the schema for system error events.
An object containing the error event type and schema.
This getter should define the structure for system error events that may be emitted when an unexpected error occurs during event handling.
type
: A string representing the error event type.schema
: The schema definition for the error event.Abstract
executeExecutes the event handling logic for a given Arvo event.
The Arvo event to be processed. This event should conform to the expected schema for the specific handler implementation.
Configuration for OpenTelemetry integration
A promise that resolves to an array of resulting Arvo events. These events represent the outcome of processing the input event.
This method defines the core event processing logic that each concrete handler must implement. It should handle the complete lifecycle of an event, including:
Implementation considerations:
The method should handle observability concerns by:
Abstract base class for Arvo event handlers.
Description
This class defines the basic structure for all Arvo event handlers. It provides an abstract method for executing events, which must be implemented by any concrete subclass.