Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appsignal/koa

Package Overview
Dependencies
Maintainers
9
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/koa

![npm (scoped)](https://img.shields.io/npm/v/@appsignal/koa) ![npm peer dependency version (scoped)](https://img.shields.io/npm/dependency-version/@appsignal/koa/peer/koa)

  • 1.0.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
9
Weekly downloads
 
Created
Source

@appsignal/koa

npm (scoped) npm peer dependency version (scoped)

The AppSignal for Node.js integration for Koa (koa) v2.0.0+.

Installation

First, sign up for an AppSignal account and add both the @appsignal/nodejs and @appsignal/koa 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/koa
npm install --save @appsignal/nodejs @appsignal/koa

You can then import and use the package in your app.

Usage

The module includes an AppSignal intrumentation plugin for automatically instrumenting the middlewares or routes of your application.

// AT THE VERY TOP OF THE ENTRYPOINT OF YOUR APPLICATION...

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

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

appsignal.instrument(require("@appsignal/koa"));

// ...ALL THE REST OF YOUR IMPORTS AND CODE GO HERE!

const Koa = require("koa");
const Router = require("@koa/router"); // @koa/router is also supported out of the box!

// Add error handling

app.on("error", (error) => {
  appsignal
    .tracer()
    .setError(error)
});

const app = new Koa();

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

Package last updated on 07 Jun 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc