Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Commit

Permalink
Bug 868516 - Add newrelic to login
Browse files Browse the repository at this point in the history
  • Loading branch information
humphd committed May 3, 2013
1 parent 5153cc7 commit 1409118
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -120,3 +120,9 @@ Code inside the config block can also make use of ```window```, ```document``` a
```

Note that your variables do not become globals, they are scoped so that they only work in combination with your login and logout handlers.

## New Relic

To enable New Relic, set the `NEW_RELIC_ENABLED` environment variable and add a config file, or set the relevant environment variables.

For more information on configuring New Relic, see: https://github.com/newrelic/node-newrelic/#configuring-the-agent
5 changes: 5 additions & 0 deletions app.js
Expand Up @@ -4,4 +4,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

// New Relic Server monitoring support
if ( process.env.NEW_RELIC_ENABLED ) {
require( "newrelic" );
}

var httpd = require('./app/http/server.js');
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -15,6 +15,7 @@
"less-middleware": "0.1.9",
"mongoose": "~3.6.4",
"mongoose-validator": "~0.2.1",
"newrelic": "0.9.20",
"node-statsd": "0.0.7",
"winston": "~0.6.2"
},
Expand Down

0 comments on commit 1409118

Please sign in to comment.