New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nodeapm

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodeapm

Monitor the nodejs application built in any framework and supports node version 14 and above.

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Nextapm

Monitor the nodejs application built in any framework and supports node version 14 and above.

Installation

npm i nodeapm

Instrument

Include the nodeapm module in the fire line of application start file.

require('nodeapm'); // should be in first line
... your app imports...

For Typescript/ES6 application use import rather than require.

import 'nodeapm'; // should be in first line
... your app imports...

Track Exceptions

Inorder to track exception, use following agent api.

const nodeapm = require('nodeapm');
... your app imports...

try {
  ...your app code ...
} catch (e) {
  nodeapm.trackException(e);
}
import { trackException } from 'nodeapm';
... your app imports...

try {
  ...your app code ...
} catch (e) {
  trackException(e);
}

Evnironment variables

Configure following environment values, you can get it from https://app.nextapm.dev after creating monitor NEXTAPM_LICENSE_KEY NEXTAPM_PROJECT_ID

Restart/ Redeploy

Finally restart/redeploy the application and perform transaction and check metrics in https://app.nextapm.dev dashboard

Keywords

apm

FAQs

Package last updated on 21 Jun 2021

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