This release is deprecated due to an issue where the agent may capture transaction attributes regardless of agent settings. If you are using this release, upgrade your agent to agent version 2.9.1 or higher. For more information, see Security Bulletin NR18-06.
This method may be used to mark the current running middleware as a potential responder.
savePossibleTransactionNameshould be used if a middleware can't be determined to be a terminal middleware while it executes, but may be responsible for responding after execution has finished.
async_hookstests around maintain transaction context.
Added Koa to metric naming objects.
While we aren't actually wrapping any callback, this is a workaround that gives us access to the active segment. This ensures that all segments inside Koa transaction traces are named correctly, particularly in cases when transaction context may be lost.
middlewareWithPromiseRecorderreturn spec to set
txInfo.errorHandled = truein cases when there is no error.
Because Koa has no concept of errorware in the same sense as Express or Connect (
(err, req, res, next)), the agent now assumes if a middleware resolves, any error that may have occurred can be marked as handled.
- Added check for
async_hooksinstrumentation, to help ensure that transaction context is maintained.