as far as I understand, the primary beneficiary of including @segment/analytics-next
in @neo4j-nvl
is not me as the end-user, but rather the authors of the @neo4j-nvl
package.
The Network Tab in my next.js app is full of blocked requests to https://api.segment.io
and the console periodically shows the error:
next-dev.js:20 Error sending segment performance metrics TypeError: Failed to fetch
at fetch (fetch.js:12:48)
at RemoteMetrics.eval (remote-metrics.js:95:44)
at step (tslib.es6.mjs:147:1)
at Object.eval [as next] (tslib.es6.mjs:128:44)
at eval (tslib.es6.mjs:121:1)
at new Promise ()
at __awaiter (tslib.es6.mjs:117:1)
at RemoteMetrics.send (remote-metrics.js:88:25)
at RemoteMetrics.eval (remote-metrics.js:76:1)
at step (tslib.es6.mjs:147:1)
at Object.eval [as next] (tslib.es6.mjs:128:44)
at eval (tslib.es6.mjs:121:1)
at new Promise ()
at __awaiter (tslib.es6.mjs:117:1)
at RemoteMetrics.flush (remote-metrics.js:68:25)
at run_1 (remote-metrics.js:39:1)
how do I configure or opt-out of the interaction with segment-analytics?