footprintjs - v11.2.0
    Preparing search index...

    Interface EmitRecorder

    Pluggable observer for consumer-emitted structured events.

    All methods are optional; implement only what you care about. Recorders are invoked synchronously in attachment order. If a recorder throws, the error is caught and isolated — other recorders continue to receive the event and the emitting stage is unaffected.

    interface EmitRecorder {
        id: string;
        clear?(): void;
        onEmit?(event: EmitEvent): void;
        toSnapshot?(): RecorderBundle;
    }
    Index
    id: string

    Stable identifier for idempotent attach/detach. Re-attaching with the same id replaces the previous registration on the executor.

    • Optional: reset recorder-internal state between runs. Called by the executor before each run().

      Returns void

    • Optional: expose collected data for inclusion in executor.getSnapshot().recorders.

      Returns RecorderBundle