You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For intermittent and vexing browser issues like #277, we'd like to take advantage of New Relic's browser monitoring features, which will log errors that any user sees so we can get a sense of how widespread that issue is and maybe see more patterns.
There are two ways we can install this:
the recommended route is to install the NewRelic "APM" service on Kubernetes via Helm. There's a walkthrough wizard here, but I'd want @Rub21 / DevSeed to do that since it touches Kubernetes and Helm. If we install that, then we can use the NewRelic agent to enable browser console monitoring on the website plus maybe Task Manager. They say it will auto-add the snippet to all pages. Not sure how it knows all possible URL routes, but worth a shot if we can do it!
If for some reason we shouldn't go that route, we can also manually insert a JS snippet in the website code, which I could handle with @gregallensworth, but the downside to this approach is we need to ensure it gets inserted on all pages and apps, we have to manually update the agent if NR has updates, and we'd have code changes in our repo that are just for this tracking.
@danrademacher , I have added the New Relic APM configuration for the web container, it needed to add Ruby configuration in the ohm-website code, in order to collect data. e.g 👇
Great! I see that PR as well. I need to look more closely at the browser monitoring to see if there's anything else we need to do there to enable. Maybe you did it already?
And I assumed we would need to merge and deploy this PR OpenHistoricalMap/ohm-deploy#87 into staging at least to see metrics for staging, but you have screenshots of it working. Interesting!
I'll look closer at the PR and should be able to merge shortly, so we can be sure this is all working on Staging
Activity
Rub21 commentedon Sep 10, 2021
@danrademacher , I have added the New Relic APM configuration for the web container, it needed to add Ruby configuration in the
ohm-websitecode, in order to collect data. e.g 👇https://one.newrelic.com/launcher/nr1-core.explorer
danrademacher commentedon Sep 10, 2021
Great! I see that PR as well. I need to look more closely at the browser monitoring to see if there's anything else we need to do there to enable. Maybe you did it already?
And I assumed we would need to merge and deploy this PR OpenHistoricalMap/ohm-deploy#87 into staging at least to see metrics for staging, but you have screenshots of it working. Interesting!
I'll look closer at the PR and should be able to merge shortly, so we can be sure this is all working on Staging
danrademacher commentedon Sep 11, 2021
I deployed, then used +Add Data in New Relic to add staging as a browser data source:

Seems like it should appear here
Maybe it takes a while
danrademacher commentedon Sep 13, 2021
I see we are now getting info on Staging in browser stats:

danrademacher commentedon Sep 13, 2021
and now on production:
