Type Alias ArvoEventHandlerFunctionInput<TContract>

ArvoEventHandlerFunctionInput<TContract>: {
    event: ArvoEvent<z.infer<TContract["accepts"]["schema"]>, Record<string, any>, TContract["accepts"]["type"]>;
    source: string;
    span: Span;
}

Represents the input for an ArvoEvent handler function.

Type Parameters

  • TContract extends VersionedArvoContract<any, any>

Type declaration

  • event: ArvoEvent<z.infer<TContract["accepts"]["schema"]>, Record<string, any>, TContract["accepts"]["type"]>

    The ArvoEvent object.

  • source: string

    The source field data of the handler

  • span: Span

    The OpenTelemetry span