Socket
Socket
Sign inDemoInstall

@appsignal/nodejs

Package Overview
Dependencies
194
Maintainers
9
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @appsignal/nodejs

- [AppSignal.com website][appsignal] - [Documentation][docs] - [Support][contact]


Version published
Weekly downloads
7.5K
decreased by-24.14%
Maintainers
9
Created
Weekly downloads
 

Changelog

Source

3.0.0

Welcome to AppSignal for Node.js version 3.0.0.!

In this release, we have switched to using OpenTelemetry internally for tracing. (We do not yet support OpenTelemetry for metrics and logging, but do continue to support metrics through our own metrics system.) The AppSignal instrumentation packages @appsignal/express, @appsignal/koa, @appsignal/nextjs and @appsignal/apollo-server should no longer be used. Some official OpenTelemetry instrumentation packages are bundled with our package as dependencies and instrumented automatically. Other supported instrumentation packages can be added and configured manually.

We strongly recommend following the [migration guide] while upgrading. Instrumentation from package version 2 is not compatible with version 3. Custom instrumentation will need to be set up using OpenTelemetry instrumentation.

If you run into any issues upgrading to this new version, please contact us at [support@appsignal.com][support] for help.

  • [Version 3 migration guide][migration guide]
  • [Contact us for support][support]

Added

  • Add support for express package
  • Add support for graphql package
  • Add support for ioredis package
  • Add support for Fastify
  • Add support for Knex.js
  • Add support for koa package
  • Add support for mysql package
  • Add support for mysql2 package
  • Add support for MongoDB
  • Add support for Mongoose
  • Add support for Nest.js
  • Add support for Next.js
  • Add support for pg package
  • Add support for prisma package
  • Add support for redis package
  • Add support for redis package version 4
  • Add support for the fs module
  • Instrument outgoing HTTP requests

Changed

  • Use OpenTelemetry for tracing instrumentation of libraries and Node.js modules.
  • Remove dependency on @appsignal/* instrumentation packages.

Readme

Source

AppSignal for Node.js

npm (scoped) Build Status code style: prettier

The core AppSignal for Node.js library.

Installation

Please follow our installation guide in our documentation.

First, sign up for an AppSignal account and run our automated install tool, which will install @appsignal/nodejs and any relevant integrations to your project:

npx @appsignal/cli install

You can also skip the automated tool and add @appsignal/nodejs to your package.json on the command line with npm/yarn:

yarn add @appsignal/nodejs
npm install --save @appsignal/nodejs

Alternatively, you can manually add the @appsignal/nodejs package to your package.json. Then, run yarn install/npm install.

Installing the AppSignal for Node.js integration builds a native extension. In order to compile it, macOS users will need to install the Xcode Developer Tools. Linux users will need the dependencies outlined here. Windows is not supported.

You can then import and use the package in your bundle:

const { Appsignal } = require("@appsignal/nodejs");

const appsignal = new Appsignal({
  active: true,
  name: "<YOUR APPLICATION NAME>",
  pushApiKey: "<YOUR API KEY>"
});

// ...all the rest of your code goes here!

In order to auto-instrument modules, the Appsignal module must be both required and initialized before any other package.

Extension

This package also contains the C++ extension, and the install script for the agent. The native extension is a bridge between the Node.js runtime and our agent.

Development

Installation

This repository is a mono-managed repository. First install mono on your local machine by following the mono installation steps.

Then install the dependencies and prepare the project for development use using mono:

mono bootstrap

You can then run the following to start the compiler in watch mode.

npm run build:watch --parallel

You can also build the library without watching the directory:

mono build

Version management configuration is provided for asdf.

Testing

The tests for this library use Jest as the test runner. Once you've installed the dependencies, you can run the following command in the root of this repository to run the tests for all packages, or in the directory of a package to run only the tests pertaining to that package:

mono test

Contributing

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 Stroopwafels. Have look at everyone we send a package to so far on our Stroopwafels page.

Support

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

Last updated on 21 Oct 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc