newrelic / gatsby-plugin-newrelic

A Gatsby plugin for instrumenting your site with New Relic's Browser Agent
https://opensource.newrelic.com/projects/newrelic/gatsby-plugin-newrelic
Apache License 2.0
8 stars 19 forks source link

[Gatsby-Plugin] Set Browser Agent to load via CDN so it always uses the latest version #27

Open rudouglas opened 3 years ago

rudouglas commented 3 years ago

Freddy has already done work on including the agent via CDN, which means the plugin is always up to date with the latest agent version here. This is installable using npm i gatsby-plugin-newrelic@alpha which I tested out and it looks like it's working as expected but may need some further testing to ensure we're getting all the same data.

The only change to be aware of is the instrumentationType: proAndSPA is now instrumentationType: spa so this will need to be changed in each sites browser-config.js were appropriate

jpvajda commented 3 years ago

We discussed if we really want to automatically install the latest browser agent and if that won't cause us problems.

jpvajda commented 3 years ago

de-coupling from our work to upgrade this plugin as isn't not required, so we can look at this later.