Methods
(static) default(ctx, next) → {void}
Adds a transaction identifier to every request to track a request's control flow through the entire lifetime of the request, including across asynchronous calls.
Adds a transaction identifier to every request to track a request's control flow through the entire lifetime of the request, including across asynchronous calls. We use a transactoin ID instead of the session ID or user since both are persistent(ish) identification.
Parameters:
Name | Type | Description |
---|---|---|
ctx |
Object |
The Koa context |
next |
function |
The next middleware or handler in the connect chain |