Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@appsignal/express
Advanced tools
![npm (scoped)](https://img.shields.io/npm/v/@appsignal/express) ![npm peer dependency version (scoped)](https://img.shields.io/npm/dependency-version/@appsignal/express/peer/express)
@appsignal/express
The AppSignal for Node.js integration for Express.js (express
) v4.0.0+.
⚠️ This package is no longer required for AppSignal for Node.js version 3.0. If you use version 3.0 or newer in your app, please remove this package from your package.json
file.
First, sign up for an AppSignal account and add both the @appsignal/nodejs
and @appsignal/express
packages to your package.json
. Then, run yarn install
/npm install
.
You can also add these packages to your package.json
on the command line:
yarn add @appsignal/nodejs @appsignal/express
npm install --save @appsignal/nodejs @appsignal/express
You can then import and use the package in your app.
The module includes middleware for automatically instrumenting the routes of your application.
const { Appsignal } = require("@appsignal/nodejs")
const appsignal = new Appsignal({
active: true,
name: "<YOUR APPLICATION NAME>",
pushApiKey: "<YOUR API KEY>"
})
const express = require("express")
const { expressMiddleware } = require("@appsignal/express")
const app = express()
// ADD THIS AFTER ANY OTHER EXPRESS MIDDLEWARE, BUT BEFORE ANY ROUTES!
app.use(expressMiddleware(appsignal))
The module also contains a middleware for catching any errors passed to next()
.
const { Appsignal } = require("@appsignal/nodejs")
const appsignal = new Appsignal({
active: true,
name: "<YOUR APPLICATION NAME>"
pushApiKey: "<YOUR API KEY>"
})
const express = require("express")
const { expressErrorHandler } = require("@appsignal/express")
const app = express()
// ADD THIS AFTER ANY OTHER EXPRESS MIDDLEWARE, AND AFTER ANY ROUTES!
app.use(expressErrorHandler(appsignal))
An example Express app, containing usage of all of our middleware and custom instrumentation can be found here.
Thinking of contributing to this repo? Awesome! 🚀
Please follow our Contributing guide in our documentation and follow our Code of Conduct.
Also, we would be very happy to send you Stroopwafles. Have look at everyone we send a package to so far on our Stroopwafles page.
Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.
FAQs
![npm (scoped)](https://img.shields.io/npm/v/@appsignal/express) ![npm peer dependency version (scoped)](https://img.shields.io/npm/dependency-version/@appsignal/express/peer/express)
The npm package @appsignal/express receives a total of 365 weekly downloads. As such, @appsignal/express popularity was classified as not popular.
We found that @appsignal/express demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.