Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Setup newrelic
Browse files Browse the repository at this point in the history
add package-lock to the repo

add new relic key variable
  • Loading branch information
tcbyrd committed Feb 7, 2019
1 parent 5843b68 commit b8e5343
Show file tree
Hide file tree
Showing 5 changed files with 7,805 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ node_modules
.env
npm-debug.log
private-key.pem
package-lock.json
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require('newrelic')

const getConfig = require('probot-config')
const createScheduler = require('probot-scheduler')
const Stale = require('./lib/stale')
Expand Down
53 changes: 53 additions & 0 deletions newrelic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
'use strict'
/**
* New Relic agent configuration.
*
* See lib/config/default.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
exports.config = {
/**
* Array of application names.
*/
app_name: ['Probot Stale'],
/**
* Your New Relic license key.
*/
license_key: process.env.NEW_RELIC_KEY,
logging: {
/**
* Level at which to log. 'trace' is most useful to New Relic when diagnosing
* issues with the agent, 'info' and higher will impose the least overhead on
* production applications.
*/
level: 'trace'
},
/**
* When true, all request headers except for those listed in attributes.exclude
* will be captured for all traces, unless otherwise specified in a destination's
* attributes include/exclude lists.
*/
allow_all_headers: true,
attributes: {
/**
* Prefix of attributes to exclude from all destinations. Allows * as wildcard
* at end.
*
* NOTE: If excluding headers, they must be in camelCase form to be filtered.
*
* @env NEW_RELIC_ATTRIBUTES_EXCLUDE
*/
exclude: [
'request.headers.cookie',
'request.headers.authorization',
'request.headers.proxyAuthorization',
'request.headers.setCookie*',
'request.headers.x*',
'response.headers.cookie',
'response.headers.authorization',
'response.headers.proxyAuthorization',
'response.headers.setCookie*',
'response.headers.x*'
]
}
}
Loading

0 comments on commit b8e5343

Please sign in to comment.