Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 936f8fe

Browse files
author
John P Vajda
committed
feat: added gatsby-build-newrelic
1 parent eb2b2fb commit 936f8fe

File tree

3 files changed

+262
-12
lines changed

3 files changed

+262
-12
lines changed

gatsby-config.js

+17
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,23 @@ module.exports = {
188188
allPageHeaders: ['Referrer-Policy: no-referrer-when-downgrade'],
189189
},
190190
},
191+
192+
{
193+
resolve: `gatsby-build-newrelic`,
194+
options: {
195+
NR_LICENSE_KEY: process.env.NEW_RELIC_LICENSE_KEY,
196+
NR_ACCOUNT_ID: process.env.NEW_RELIC_ACCOUNT_ID,
197+
SITE_NAME: process.env.SITE_NAME,
198+
collectTraces: true,
199+
collectLogs: true,
200+
collectMetrics: true,
201+
staging: true,
202+
customTags: {
203+
featureFlag: process.env.FEATURE_FLAG,
204+
},
205+
},
206+
},
207+
191208
// Github API for sponsorship section on homepage
192209
{
193210
resolve: `gatsby-source-github-api`,

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"dotenv": "^10.0.0",
1616
"feather-icons": "^4.28.0",
1717
"gatsby": "^3.8.0",
18+
"gatsby-build-newrelic": "^1.1.6",
1819
"gatsby-image": "^3.8.0",
1920
"gatsby-plugin-gatsby-cloud": "^3.0.0",
2021
"gatsby-plugin-manifest": "^3.8.0",
@@ -79,7 +80,8 @@
7980
"test:watch": "yarn test -- --watch",
8081
"test:update": "yarn test -- --update-snapshot",
8182
"eslint-check": "eslint src/ gatsby/",
82-
"eslint-fix": "eslint src/ gatsby/ --fix"
83+
"eslint-fix": "eslint src/ gatsby/ --fix",
84+
"gatsby build": "--open-tracing-config-file ./node_modules/gatsby-build-newrelic/zipkin-local.js --graphql-tracing"
8385
},
8486
"repository": {
8587
"type": "git",

0 commit comments

Comments
 (0)