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

newrelic

Package Overview
Dependencies
Maintainers
1
Versions
383
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newrelic

New Relic agent

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
874K
increased by4.43%
Maintainers
1
Weekly downloads
 
Created

What is newrelic?

The New Relic npm package is a powerful tool for monitoring and managing the performance of your Node.js applications. It provides insights into application performance, error tracking, and user interactions, helping developers to optimize and troubleshoot their applications effectively.

What are newrelic's main functionalities?

Application Performance Monitoring (APM)

New Relic APM provides detailed insights into the performance of your application, including response times, throughput, and error rates. By simply requiring the New Relic module at the start of your application, it will automatically start monitoring your app's performance.

const newrelic = require('newrelic');

// Your application code here

// New Relic will automatically monitor your app's performance

Custom Instrumentation

Custom instrumentation allows you to monitor specific parts of your application that are not automatically tracked by New Relic. By using the `getTransaction` method, you can create custom transactions and measure their performance.

const newrelic = require('newrelic');

function myCustomFunction() {
  const transaction = newrelic.getTransaction();
  // Your custom code here
  transaction.end();
}

myCustomFunction();

Error Tracking

New Relic provides error tracking capabilities that allow you to capture and report errors that occur in your application. By using the `noticeError` method, you can send error details to New Relic for further analysis.

const newrelic = require('newrelic');

try {
  // Your code that might throw an error
} catch (error) {
  newrelic.noticeError(error);
}

Custom Events

Custom events allow you to send specific events to New Relic for tracking and analysis. By using the `recordCustomEvent` method, you can create and send custom events with associated data.

const newrelic = require('newrelic');

newrelic.recordCustomEvent('MyCustomEvent', {
  key1: 'value1',
  key2: 'value2'
});

Other packages similar to newrelic

Keywords

FAQs

Package last updated on 11 Apr 2014

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