Introspection & Observability
Visualizing Event Flows
A REPL for Your System
// In your diagnostic tool's code
const apiGatewayState = await diagnosticNode.send(apiGatewayNode, {
type: 'introspect-get-state'
}).return();
// The apiGatewayNode would have a handler for this event
apiGatewayNode.on('introspect-get-state', (event, context) => {
// Return a copy of the current state
return apiGatewayNode.state.get();
});The Power of Observation
Last updated