Actually, I want to document the whole thing better. I don't want people to
install new relic unless they're actually going to use it.

If you check out the new relic agent docs, the only piece that's required
in the actual app is that `require('newrelic')`. Other than that, you
install the agent `npm install newrelic` and then add a config file. If
someone isn't running newrelic, it seems like a bummer to have to install
the agent automatically.

On Thu, Mar 7, 2013 at 1:48 PM, Brian J Brennan <notifications@github.com>wrote:

> In app.js:
>
> > @@ -14,6 +14,13 @@ var app = express();
> >  app.logger = logger;
> >  app.config = configuration;
> >
> > +// if this is included, you need to configure the new relic agent
> > +// https://npmjs.org/package/newrelic
> > +if (configuration.new_relic) {
> > +  console.log("including New Relic");
> > +  require('newrelic');
>
> Also, you need to add newrelic to package.json. PROTIP: when you install
> a package, you can do npm install --save <pkg> to have it automatically
> do that for you.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/openbadges/pull/714/files#r3286894>
> .
>



-- 
@chmcavoy <http://twitter.com/chmcavoy>
http://lonelylion.com