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

artsy-newrelic

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

artsy-newrelic

Plug-and-play NewRelic module wrapper configured for Artsy Node apps.

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

artsy-newrelic

Plug-and-play NewRelic module wrapper configured for Artsy Node apps.

Example

Require above your app instance, and mount the middleware.

var newrelic = require('artsy-newrelic');
var app = express();
app.use(newrelic);

Add browser-side detection

head
  != newRelicHead

Use env vars to configure (values are defaults)

NEW_RELIC_LICENSE_KEY=
NEW_RELIC_APP_NAME=process.env.APP_NAME
NEW_RELIC_ERROR_COLLECTOR_IGNORE_ERROR_CODES=400,401,402,[...],499

Leave NEW_RELIC_LICENSE_KEY out in dev/test environments and NewRelic won't bother you.

Testing

Create a .env file in the root of this project with NEW_RELIC_LICENSE_KEY and APP_NAME set. Run npm run example and check your NewRelic panel to see it integrate.

License

MIT

FAQs

Package last updated on 14 Jun 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