Express
The AppSignal for Node.js integration for Express.
Installation
Express is instrumented automatically by the AppSignal for Node.js package. In order for errors occurring in your Express application to be forwarded to AppSignal, follow the instructions below to setup the error handler middleware.
Error Handler
The module contains middleware to send any errors that take place in your Express application to AppSignal.
Features
The Express integration will send AppSignal a child span representing the execution time of each middleware, as well as a child span for the request handler.
The integration will use the request route as the name of the action. Request query parameters will be sent.
The request body will be sent if req.body
is present (for example, when using a body parsing middleware such as body-parser
)
The request cookies will be sent if req.cookies
is present (for example, when using a cookie parsing middleware such as cookie-parser
)
When using the error handler middleware, any errors raised by the request handler or any of the middlewares will be reported to AppSignal.