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

chpr-newrelic

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chpr-newrelic

This utility library implements our standard newrelic integration

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

chpr-newrelic

Purpose of this library

The purpose of this library is to make a consistent integration of newrelic in all node apps as simple as possible, and to have to modify all the projects as rarely as possible.

This library is here to centralize the configuration of newrelic instead of duplicating it across all node applications

Configuration

Your app must have these environment variables defined to use this library

NEW_RELIC_ENABLED: "true" or "false" (default "false"). Defines whether newrelic should be used or not. If set to "false", newrelic won't be loaded at all.

NEW_RELIC_LICENSE_KEY: The licence key to use with newrelic.

NEW_RELIC_APP_NAME: The application name in newrelic

Don't use any other newrelic configuration variables

Use

Insert this line at the very top of the entry point of the process.

require('chpr-newrelic');

Don't put a newrelic.js file in your project

Note on testing

When making changing on this library testing is not trivial, as this project is only plumbing between your app and newrelic.

You will need to:

  • push your changes on a branch
  • make changes in an app to use the branch
  • deploy those changes in a testing environment
  • generate load on the app
  • check if everything works well

But it's ok because this project won't change a lot.

FAQs

Package last updated on 29 Dec 2016

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