I’m trying to filter out (ignore) requests to external services in the APM, so they don’t affect the Apdex and overall stats.
I’m doing it with the help of the NEW_RELIC_IGNORING_RULES env variable. It seems to work for sentry.io (the rule is ‘^/sentry\.io/’), but I cannot make it work for google analytics.
I tried a few rules, including ‘^/google-analytics\.com/’ and ‘^/www\.google-analytics\.com/’ (exactly as reported by new relic) but none of them works.
I used the following docs as a guide: https://docs.newrelic.com/docs/agents/nodejs-agent/api-guides/nodejs-agent-api#ignoring
I would appreciate any help with setting the correct value for the env variable.
Thanks,
Jack