fix(bus): emit step events for ws and mesh routes
Steps were executed by three separate hand-rolled loops: runPipeline (HTTP), buildWsRoutes (ws) and resolveScope (mesh). Only the HTTP one emitted request:step:enter/leave, so a logging plugin silently observed nothing on ws routes — a gap in a documented public API, not just redundancy. Route every transport through a single runSteps() so observability is uniform by construction rather than by remembering to copy the emit calls. Also fixes the plugins guide, which documented a request:step:exit event that has never existed (the bus emits request:step:leave). Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
4 files changed
+81
-34
No files matched your search
@@ -42,7 +42,7 @@ mesh activity without touching the pipeline itself:
|
||||
```typescript
|
||||
api.bus.on('boot:provider:ready', (p: any) => { /* ... */ });
|
||||
api.bus.on('request:step:enter', (p: any) => { /* ... */ });
|
||||
api.bus.on('request:step:exit', (p: any) => { /* ... */ });
|
||||
api.bus.on('request:step:leave', (p: any) => { /* ... */ });
|
||||
```
|
||||
|
||||
The full event vocabulary:
|
||||
|
||||
Reference in new issue
Block a user