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

feat: grab agent code via REST api #1

Closed devfreddy closed 4 years ago

devfreddy commented 4 years ago

Be smarter and more dynamic by utilizing the api to pull the agent code vs. having a potentially outdated version in this repository.

Add or list browser apps

curl -X GET 'https://api.newrelic.com/v2/browser_applications.json' \
     -H 'X-Api-Key:<Account REST API KEY>' -i \
     -G -d 'filter[ids]=<Browser App ID>'
devfreddy commented 4 years ago

There's a better way, closing in favor of #4