EmitRecorder
Interface: EmitRecorder
Defined in: node_modules/footprintjs/dist/types/lib/recorder/EmitRecorder.d.ts:124
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:129
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:136
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:131
Called for every scope.$emit(name, payload) call in any stage.
Parameters
event
Returns
void
toSnapshot()?
optionaltoSnapshot():RecorderBundle
Defined in: node_modules/footprintjs/dist/types/lib/recorder/EmitRecorder.d.ts:141
Optional: expose collected data for inclusion in
executor.getSnapshot().recorders.
Returns
RecorderBundle
