EmitRecorder
Interface: EmitRecorder
Defined in: node_modules/footprintjs/dist/types/lib/recorder/EmitRecorder.d.ts:112
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.
Properties
id
readonlyid:string
Defined in: node_modules/footprintjs/dist/types/lib/recorder/EmitRecorder.d.ts:117
Stable identifier for idempotent attach/detach. Re-attaching with the same id replaces the previous registration on the executor.
Methods
clear()?
optionalclear():void
Defined in: node_modules/footprintjs/dist/types/lib/recorder/EmitRecorder.d.ts:124
Optional: reset recorder-internal state between runs. Called by the
executor before each run().
Returns
void
onEmit()?
optionalonEmit(event):void
Defined in: node_modules/footprintjs/dist/types/lib/recorder/EmitRecorder.d.ts:119
Called for every scope.$emit(name, payload) call in any stage.
Parameters
event
Returns
void
toSnapshot()?
optionaltoSnapshot():object
Defined in: node_modules/footprintjs/dist/types/lib/recorder/EmitRecorder.d.ts:129
Optional: expose collected data for inclusion in
executor.getSnapshot().recorders.
Returns
object
data
data:
unknown
description?
optionaldescription?:string
name
name:
string
preferredOperation?
optionalpreferredOperation?:RecorderOperation
