@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Interface ObservabilityMappingProps<Op>

    Props for creating an ObservabilityMapping.

    interface ObservabilityMappingProps<Op extends Operation.Definition<any, any>> {
        event: string;
        operation: Op;
        properties?: (
            input: InputOf<Op>,
            output: OutputOf<Op>,
        ) => undefined | Record<string, unknown>;
    }

    Type Parameters

    • Op extends Operation.Definition<any, any>
    Index

    Properties

    event: string

    The event name.

    operation: Op

    The operation whose successful invocation emits the event.

    properties?: (
        input: InputOf<Op>,
        output: OutputOf<Op>,
    ) => undefined | Record<string, unknown>

    Derives the event's properties; returns undefined to skip the event for this invocation.